WO2024041278A1 - 通信方法和系统、电子设备、计算机可读介质 - Google Patents

通信方法和系统、电子设备、计算机可读介质 Download PDF

Info

Publication number
WO2024041278A1
WO2024041278A1 PCT/CN2023/108581 CN2023108581W WO2024041278A1 WO 2024041278 A1 WO2024041278 A1 WO 2024041278A1 CN 2023108581 W CN2023108581 W CN 2023108581W WO 2024041278 A1 WO2024041278 A1 WO 2024041278A1
Authority
WO
WIPO (PCT)
Prior art keywords
identifier
gem frame
port
slave gateway
gateway
Prior art date
Application number
PCT/CN2023/108581
Other languages
English (en)
French (fr)
Inventor
张伟良
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2024041278A1 publication Critical patent/WO2024041278A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Definitions

  • the embodiments of this application relate to the technical field of Passive Optical Network (PON, Passive Optical Network), and in particular to communication methods and systems, electronic equipment, and computer-readable media.
  • PON Passive Optical Network
  • FTTH Fiber to the Home
  • FTTR Fiber to the Room
  • the FTTH optical network unit (ONU, Optical Network Unit) and FTTR optical line terminal (OLT, Optical Line Terminal) are integrated in one device, which can be called the main gateway.
  • the main gateway has an uplink optical port and a downlink optical port.
  • the main gateway is connected to the FTTH OLT through the uplink optical port and works according to the FTTH ONU.
  • the main gateway is connected to the FTTR ONU through the downlink optical port and works according to the FTTR OLT.
  • FTTR ONU and access point are also integrated in one device and can be called a slave gateway.
  • the slave gateway has an uplink optical port and a wireless interface.
  • the slave gateway connects to the FTTR OLT through the uplink optical port and works according to the FTTR ONU.
  • the slave gateway connects to the terminal through the wireless interface and works according to the access point (AP, Access Point). .
  • Embodiments of the present application provide a communication method and system, electronic equipment, and computer-readable media.
  • embodiments of the present application provide a communication method, which is applied to a first slave gateway.
  • the method includes: receiving an Ethernet frame sent by a first terminal; identifying the first port of the first slave gateway, and the Ethernet frame.
  • the network frame is encapsulated into a first gigabit passive optical network encapsulation mode GEM frame, and the first GEM frame is sent to the main gateway; wherein the first port identifier is a port identifier used for communication between optical network units.
  • embodiments of the present application provide a communication method applied to a master gateway.
  • the method includes: receiving a first Gigabit Passive Optical Network Encapsulation Mode GEM frame sent by a first slave gateway; wherein the first GEM frame includes : port identifier; when it is determined that the port identifier in the first GEM frame is a port identifier used for communication between optical network units, send the first GEM frame to all slave gateways.
  • embodiments of the present application provide a communication method applied to a third slave gateway.
  • the method includes: receiving a first Gigabit Passive Optical Network Encapsulation Mode GEM frame sent by the master gateway; wherein the first GEM frame includes : Port identification; determine whether to perform corresponding processing on the first GEM frame according to the port identification in the first GEM frame.
  • embodiments of the present application provide an electronic device, including: at least one processor; and a memory, where at least one program is stored, and when the at least one program is executed by the at least one processor, the At least one processor implements any of the above communication methods.
  • embodiments of the present application provide a computer-readable medium.
  • a computer program is stored on the computer-readable medium.
  • the computer program When executed by a processor, it causes the processor to implement any of the above communication methods.
  • embodiments of the present application provide a communication system, including: a first slave gateway, configured to receive an Ethernet frame sent by a first terminal; identifying a first port of the first slave gateway, and the Ethernet frame Encapsulate it into a first gigabit passive optical network encapsulation mode GEM frame, and send the first GEM frame to the main gateway; wherein the first port identifier is a port identifier used for communication between optical network units; the main gateway, Used to receive the first GEM frame sent from the first slave gateway; wherein the first GEM frame includes: a port identifier; used when it is determined that the port identifier in the first GEM frame is for communication between optical network units In the case of a port identifier, the first GEM frame is sent to all slave gateways; the third slave gateway is used to receive the first GEM frame sent by the master gateway; wherein the first GEM frame includes: a port identifier; according to The port identifier in the first GEM frame determines whether to perform corresponding processing on the first
  • the communication method provided by the embodiment of the present application performs communication between ONUs based on the port identifiers used when communicating between ONUs, instead of performing communication between ONUs based on the port identifiers used when communicating between ONUs and OLTs, so that
  • the main gateway does not need to parse the first GEM frame when forwarding, that is, there is no need to implement business forwarding between ONUs through the Ethernet layer or IP layer of the main gateway. It can only be implemented at the PON protocol layer of the main gateway. This reduces the time delay.
  • Figure 1 is a schematic structural diagram of a PON system in related technologies
  • Figure 2 is a flow chart of a communication method applied to the first slave gateway provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of the frame structure of the GEM frame according to the embodiment of the present application.
  • Figure 4 is a flow chart of a communication method applied to a main gateway provided by another embodiment of the present application.
  • Figure 5 is a flow chart of a communication method applied to a third slave gateway provided by another embodiment of the present application.
  • Figure 6 is a block diagram of a communication system provided by another embodiment of the present application.
  • the general implementation method is to configure a Gigabit Passive Optical Network (GPON, Gigabit-Capable Passive Optical Network) encapsulation mode (GEM, GPON Encapsulation Method) port identification (Port-ID, Port IDentification) to realize communication between FTTR OLT and FTTR ONU, and then FTTR OLT performs communication between FTTR ONU Forward.
  • GPON Gigabit Passive Optical Network
  • GEM Gigabit-Capable Passive Optical Network
  • Port IDentification port identification
  • FTTR OLT parses the Ethernet frame from the GEM frame, obtains the target media access control (MAC, Media Access Control) address from the Ethernet frame, and converts the target MAC address Map to the target GEM Port-ID, use the target GEM Port-ID to re-encapsulate the Ethernet frame to obtain a new GEM frame, and send the new GEM frame.
  • MAC media access control
  • MAC Media Access Control
  • Figure 2 is a flow chart of a communication method applied to the first slave gateway provided by an embodiment of the present application.
  • one embodiment of the present application provides a communication method, which is applied to the first slave gateway.
  • the method includes:
  • Step 200 Receive the Ethernet frame sent by the first terminal.
  • Step 201 Encapsulate the first port identifier of the first slave gateway and the Ethernet frame into a first GEM frame, and send the first GEM frame to the master gateway; where the first port identifier is used for communication between ONUs. Port ID.
  • the GEM frame includes: a GEM frame header and a GEM frame payload field.
  • the GEM frame header includes: payload length indication (PLI, Payload Length Indication), key index (Key Index), port identification (Port ID), reserved fields (Options), the last fragment ( LF, Last Fragment) and Hybrid Error Correction (HEC, Hybrid Error Correction).
  • PKI Payload Length Indication
  • Key Index key index
  • Port ID port identification
  • Options the last fragment
  • LF Last Fragment
  • HEC Hybrid Error Correction
  • the port identifier may be filled in with the first port identifier of the slave gateway, or may be filled with the second port identifier of the slave gateway.
  • the first port identifier is a port identifier used for communication between ONUs
  • the second port identifier is a port identifier used for communication between ONU and OLT.
  • LF is used to indicate whether it is the last fragment.
  • encapsulating the first port identifier of the first slave gateway and the Ethernet frame into the first GEM frame includes: encapsulating the Ethernet frame into the payload field in the first GEM frame, encapsulating the first The first port identifier of the gateway is encapsulated into the GEM frame header in the first GEM frame.
  • encapsulating the first port identifier of the first slave gateway into a GEM frame header in the first GEM frame includes: encapsulating the first port identifier of the first slave gateway into a port in the GEM frame header. in the identification field.
  • encapsulating the first port identifier of the first slave gateway and the Ethernet frame into the first GEM frame includes: encapsulating the first port identifier and the first identifier of the first slave gateway, and the Ethernet frame into the first GEM frame.
  • the first identification may be the User Network Interface (UNI, User Network Interface) node identification (Node ID, Node IDentification) of the first slave gateway, or it may be the UNI Node ID of the second slave gateway;
  • the second slave gateway is a slave gateway connected to the second terminal, and the second terminal is the terminal to which the target MAC address in the Ethernet frame belongs.
  • the first identification may also be the device identification of the second slave gateway.
  • the UNI Node ID is used to identify both ends of the communication. For example, 0 and 1 are used to represent two ONUs communicating. For example, ONU1 is represented by 1, and ONU2 is represented by 0.
  • encapsulating the first port identifier and the first identifier of the first slave gateway and the Ethernet frame into the first GEM frame includes: encapsulating the Ethernet frame into a payload field in the first GEM frame , encapsulating the first port identifier and the first identifier of the first slave gateway into the GEM frame header in the first GEM frame.
  • encapsulating the first port identifier and the first identifier of the first slave gateway into the GEM frame header in the first GEM frame includes: encapsulating the first port identifier of the first slave gateway into the GEM frame In the port identification field in the header, the first identification is encapsulated into the reserved field in the GEM frame header.
  • the first identifier when the first identifier is the UNI Node ID of the first slave gateway, or the first identifier is the UNI Node ID of the second slave gateway, the first identifier is encapsulated into the GEM frame header.
  • the reserved field includes: encapsulating the first identifier into any bit in the reserved field.
  • encapsulating the first identifier into any bit in the reserved field includes: encapsulating the first identifier into the highest bit in the reserved field.
  • encapsulating the first identifier into a reserved field in the GEM frame header includes: encapsulating the first identifier into a reserved field. at least one bit.
  • encapsulating the first port identifier and the first identifier of the first slave gateway into the GEM frame header in the first GEM frame includes: encapsulating the first port identifier, the first identifier of the first slave gateway and the second identifier are encapsulated into the GEM frame header in the first GEM frame; wherein the second identifier is used to indicate whether the first GEM frame is a GEM frame for communication between ONUs or a GEM frame for communication between ONUs and OLTs.
  • encapsulating the first port identifier, the first identifier and the second identifier of the first slave gateway into the GEM frame header in the first GEM frame includes: encapsulating the first port identifier of the first slave gateway It is encapsulated into the port identification field in the GEM frame header, and the first identifier and the second identifier are encapsulated into the reserved fields in the GEM frame header.
  • the first identifier and the second identifier are encapsulated into different bits in a reserved field in the GEM frame header.
  • the first identifier when the first identifier is the UNI Node ID of the first slave gateway, or the first identifier is the UNI Node ID of the second slave gateway, the first identifier is encapsulated into any of the reserved fields. In one bit, the second identifier is encapsulated into any other bit in the reserved field except the bit occupied by the first identifier. For example, the first identifier is encapsulated into the highest bit in the reserved field, and the second identifier is encapsulated into any other bit in the reserved field except the highest bit.
  • the first identification when the first identification is the device identification of the second slave gateway, the first identification is encapsulated into at least one bit in the reserved field, and the second identification is encapsulated into the reserved field except the first bit. Any bit other than the bit occupied by an identifier.
  • the first port identifier and the second port identifier of the same slave gateway have different values to distinguish the first GEM frame as an ONU. GEM frames for communication between ONU and OLT.
  • the values of the first port identifier and the second port identifier of the same slave gateway may be the same or different.
  • the second identifier is used to distinguish whether the first GEM frame is a GEM frame for communication between ONUs or a GEM frame for communication between ONUs and an OLT. In the case where the first port identifier and the second port identifier of the same gateway have the same value, port identifier resources are saved.
  • the method when the first identifier is not encapsulated in the first GEM frame, after receiving the Ethernet frame sent by the first terminal, the first port identifier of the first slave gateway and the Ethernet frame are Before encapsulating into the first GEM frame, the method further includes: obtaining the first port identifier of the first slave gateway.
  • obtaining the first port identification of the first slave gateway includes: according to the Ethernet Obtain the device identification of the second slave gateway from the target MAC address in the network frame; wherein, the second slave gateway is a slave gateway connected to the second terminal to which the target MAC address belongs; obtain the first slave gateway according to the device identification of the second slave gateway The first port identifier.
  • obtaining the first port identification of the first secondary gateway according to the device identification of the second secondary gateway includes: obtaining first configuration information whose peer device identification is the device identification of the second secondary gateway; obtaining the first The port identifier in the configuration information is used as the first port identifier of the first slave gateway.
  • the first identifier is encapsulated in the first GEM frame; and the first identifier is the UNI Node ID of the first slave gateway, or the first identifier is the UNI Node ID of the second slave gateway,
  • the method further includes: obtaining the first slave gateway's The first port identifier and the first identifier.
  • obtaining the first port identification and the first identification of the first secondary gateway includes: obtaining the device identification of the second secondary gateway according to the target MAC address in the Ethernet frame; wherein the second secondary gateway is The slave gateway to which the second terminal to which the target MAC address belongs is connected; and the first port identifier and the first identifier of the first slave gateway are obtained according to the device identifier of the second slave gateway.
  • obtaining the device identification of the second slave gateway according to the target MAC address in the Ethernet frame includes: searching for the target in the first mapping relationship between the pre-stored device identification of the slave gateway and the MAC address.
  • the found device ID is the device ID of the second slave gateway.
  • the device identification of the slave gateway may be an ONU ID.
  • a terminal connected to the slave gateway (such as the first slave gateway mentioned in the embodiments of this application) After the terminal and the second terminal) access the slave gateway, the slave gateway can learn the MAC address of the terminal, and further save the first mapping relationship between the learned MAC address and the device identification of the slave gateway.
  • the method before searching for the device identifier corresponding to the target MAC address, the method further includes: obtaining a second mapping relationship shared by other slave gateways, and storing or updating the first mapping relationship according to the second mapping relationship.
  • the second mapping relationship is a mapping relationship between MAC addresses stored by other slave gateways after learning the MAC addresses of terminals connected to other slave gateways and device identifiers of other slave gateways.
  • other slave gateways may share the second mapping relationship in various ways.
  • other slave gateways may share the second mapping relationship after learning the MAC addresses of terminals connected to the other slave gateways. Specifically, it can be shared to the main gateway, or it can be shared between different slave gateways.
  • obtaining the device identity of the second slave gateway according to the target MAC address in the Ethernet frame includes: sending an acquisition request to the primary gateway; wherein the acquisition request is used to obtain the first mapping relationship corresponding to the target MAC address. ;
  • the first mapping relationship is the mapping relationship between the device identifier of the slave gateway and the MAC address; receiving the first mapping relationship corresponding to the target MAC address sent by the master gateway, and obtaining the device identifier in the first mapping relationship corresponding to the target MAC address.
  • the acquisition request includes the target MAC address.
  • obtaining the device identity of the second slave gateway according to the target MAC address in the Ethernet frame includes: sending an acquisition request to other gateways; wherein the acquisition request is used to obtain the first mapping relationship corresponding to the target MAC address. ;
  • the first mapping relationship is the mapping relationship between the device identification of the slave gateway and the MAC address; receiving the first mapping relationship corresponding to the target MAC address sent by other gateways, and obtaining the device identification in the first mapping relationship corresponding to the target MAC address.
  • the first slave gateway is obtained according to the device identification of the second slave gateway.
  • a port identifier and a first identifier include: acquiring first configuration information whose peer device identifier is the device identifier of the second slave gateway; acquiring the port identifier in the first configuration information as the first port identifier of the first slave gateway;
  • the first identifier is the UNI Node ID of the first slave gateway, obtain the UNI Node ID in the first configuration information, and the obtained UNI Node ID is the first identifier; when the first identifier is the second slave gateway In the case of a UNI Node ID, the first identifier is obtained according to the UNI Node ID in the first configuration information.
  • 0 and 1 are used to represent two ONUs communicating. Assuming that the UNI Node ID in the first configuration information is 0, it can be determined that the first identifier is 1; the UNI Node ID in the first configuration information is 1, then it can Determine the first identifier to be 0.
  • the peer device identification may be a peer ONU ID.
  • the communication between any two slave gateways corresponds to a configuration information, that is, GEM Port Network (GEM Port Network) Connection Terminal Point (CTP, Connection Terminal Point) Maintenance Entity (ME, Maintenance Entity)
  • GEM Port Network GEM Port Network
  • CTP Connection Terminal Point
  • ME Maintenance Entity
  • T-CONT Transmission Container
  • GEM IW TP ME GEM Port Network
  • GEM Port Network CTP ME includes the following attributes:
  • Managed Entity ID (Managed Entity ID), this attribute is used to uniquely identify an instance of GEM Port Network CTP ME.
  • Port ID (Port ID), this attribute is used to identify the port ID of the GEM port associated with the GEM Port Network CTP ME.
  • T-CONT Pointer (T-CONT Pointer), this attribute points to a T-CONT instance.
  • this attribute describes whether the GEM port is used for UNI-to-ANI, ANI-to-UNI, bidirectional connection, or bidirectional UNI-to-UNI. For example, when the value of this attribute is 1, it means that the GEM port is used for UNI-to-ANI; when the value of this attribute is 2, it means that the GEM port is used for ANI-to-UNI; when the value of this attribute is 3, it means that GEM The port is used for bidirectional connections; when the value of this attribute is 4, it indicates that the GEM port is used for bidirectional UNI-to-UNI.
  • Peer device ID This attribute is used to identify the device ID of another slave gateway for communication.
  • UNI-to-UNI is a newly added communication type in the embodiment of this application, indicating communication between ONUs.
  • UNI Node ID is a newly added attribute in the embodiment of this application.
  • the peer device identification is a newly added attribute in the embodiment of this application.
  • the GEM Port Network CTP ME also includes: an associated port identifier. This attribute is used to describe the first port identifier of the slave gateway where the ONU communicating with the master gateway is located.
  • GEM Port Network CTP ME also includes: UNI Node ID. This attribute represents both ends of the communication.
  • the method when the first identifier is the device identifier of the second slave gateway, after receiving the Ethernet frame sent by the first terminal, the first port identifier of the first slave gateway and the first identifier are , and before the Ethernet frame is encapsulated into the first GEM frame, the method further includes: obtaining the device identification of the second slave gateway according to the target MAC address; obtaining the first port identification of the first slave gateway according to the device identification of the second slave gateway.
  • obtaining the first port identification of the first secondary gateway according to the device identification of the second secondary gateway includes: obtaining first configuration information whose peer device identification is the device identification of the second secondary gateway; obtaining the first The port identifier in the configuration information is used as the first port identifier of the first slave gateway.
  • the method further includes: encapsulating the port identifier and the Ethernet frame used for the uplink broadcast into a second GEM frame, and transmitting it to the master gateway. Send the second GEM frame.
  • encapsulating the port identifier used for the uplink broadcast and the Ethernet frame into the second GEM frame includes: encapsulating the port identifier used for the uplink broadcast into the port identifier in the GEM frame header of the second GEM frame. field, encapsulate the Ethernet frame into the payload field of the second GEM frame.
  • the communication method provided by the embodiment of the present application performs communication between ONUs based on the port identifiers used when communicating between ONUs, instead of performing communication between ONUs based on the port identifiers used when communicating between ONUs and OLTs, so that
  • the main gateway does not need to parse the first GEM frame when forwarding, that is, there is no need to implement business forwarding between ONUs through the Ethernet layer or IP layer of the main gateway. It can only be implemented at the PON protocol layer of the main gateway. This reduces the time delay.
  • Figure 4 is a flow chart of a communication method applied to a main gateway provided by another embodiment of the present application.
  • FIG. 4 Another embodiment of the present application provides a communication method, which is applied to the main gateway.
  • the method includes:
  • Step 400 Receive the first GEM frame sent by the first slave gateway; wherein the first GEM frame includes: a port identifier.
  • the first GEM frame includes: a GEM frame header and a GEM frame payload field.
  • the GEM frame header includes: PLI, key index (Key Index), port identification (Port ID), reserved fields (Options), LF and HEC.
  • the port identifier may be filled in with the first port identifier of the slave gateway, or may be filled with the second port identifier of the slave gateway.
  • the first port identifier is a port identifier used for communication between ONUs
  • the second port identifier is a port identifier used for communication between ONU and OLT.
  • LF is used to indicate whether it is the last fragment.
  • the first GEM frame further includes: a first identifier.
  • the first identification may be the UNI Node ID of the first slave gateway, or it may be the UNI Node ID of the second slave gateway; wherein the second slave gateway is the slave gateway connected to the second terminal, The second terminal is the terminal to which the target MAC address in the Ethernet frame belongs.
  • the first identification may also be the device identification of the second slave gateway.
  • the UNI Node ID is used to identify both ends of the communication. For example, 0 and 1 are used to represent two ONUs communicating. For example, ONU1 is represented by 1, and ONU2 is represented by 0.
  • the GEM frame header of the first GEM frame includes: a port identifier and a first identifier.
  • the port identification field of the GEM frame header includes the port identification
  • the reserved field of the GEM frame header includes the first identification
  • At least one bit of the reserved field of the GEM frame header includes the first identification.
  • the first identifier is the UNI Node ID of the first slave gateway, or the first identifier is the UNI Node ID of the second slave gateway, in a certain bit of the reserved field of the GEM frame header Includes first identifier.
  • the first identifier is included in the highest bit of the reserved field.
  • the first GEM frame further includes: a second identifier, and the second identifier is used to characterize whether the first GEM frame is a GEM frame for communication between ONUs or a GEM frame for communication between an ONU and an OLT.
  • the GEM frame header of the first GEM frame further includes: a second identifier.
  • the reserved field of the GEM frame header further includes: a second identifier.
  • the second identification is located in a bit in the reserved field other than the bits occupied by the first identification.
  • the first identifier is the UNI Node ID of the first slave gateway, or the When an identifier is the UNI Node ID of the second slave gateway, the second identifier is located in other bits except the highest bit in the reserved field.
  • Step 401 When it is determined that the port identifier in the first GEM frame is the port identifier used for communication between ONUs, send the first GEM frame to all slave gateways.
  • determining that the port identifier in the first GEM frame is the port identifier used for communication between ONUs includes: obtaining second configuration information whose port identifier is the port identifier in the first GEM frame; determining The peer device identifier in the second configuration information is not a special value.
  • the port identifier in the first GEM frame is a port used for communication between the ONU and the OLT. logo.
  • the communication between any two slave gateways corresponds to a piece of configuration information, that is, GEM Port Network CTP ME, which is associated with T-CONT and GEM IW TP ME.
  • GEM Port Network CTP ME includes the following attributes:
  • Managed Entity ID (Managed Entity ID), this attribute is used to uniquely identify an instance of GEM Port Network CTP ME.
  • Port ID (Port ID), this attribute is used to identify the port ID of the GEM port associated with the GEM Port Network CTP ME.
  • T-CONT Pointer (T-CONT Pointer), this attribute points to a T-CONT instance.
  • this attribute describes whether the GEM port is used for UNI-to-ANI, ANI-to-UNI, bidirectional connection, or bidirectional UNI-to-UNI. For example, when the value of this attribute is 1, it means that the GEM port is used for UNI-to-ANI; when the value of this attribute is 2, it means that the GEM port is used for ANI-to-UNI; when the value of this attribute is 3, it means that GEM The port is used for bidirectional connections; when the value of this attribute is 4, it indicates that the GEM port is used for bidirectional UNI-to-UNI.
  • Peer device ID This attribute is used to identify the device ID of another slave gateway for communication. If the value of this attribute is a special value, it indicates communication between the ONU and the OLT.
  • UNI-to-UNI is a newly added communication type in the embodiment of this application, indicating communication between ONUs.
  • the peer device identification is a newly added attribute in the embodiment of this application.
  • the GEM Port Network CTP ME also includes: associated port identification. This attribute is used to describe the first port identification of the slave gateway where the ONU communicating with it is located.
  • GEM Port Network CTP ME also includes: UNI Node ID. This attribute represents both ends of the communication.
  • UNI Node ID is a newly added attribute in the embodiment of this application.
  • determining that the port identifier in the first GEM frame is the port identifier used for communication between ONUs includes: determining that the existing port identifier is the port identifier in the first GEM frame, and the peer device The identifier is third configuration information of the first identifier in the first GEM frame.
  • the port identifier in the first GEM frame is the port identifier used for communication between the ONU and the OLT.
  • determining that the port identifier in the first GEM frame is a port identifier used for communication between optical network units includes: obtaining a second identifier in the first GEM frame; determining that the second identifier is used for communication between optical network units. This indicates that the first GEM frame is a GEM frame for communication between ONUs.
  • the method further includes: obtaining the second slave gateway's first port identifier. A port identifier; replace the port identifier in the first GEM frame with the first port of the second slave gateway
  • the first GEM frame that is identified is updated; correspondingly, sending the first GEM frame to all slave gateways includes: sending the updated first GEM frame to all slave gateways.
  • the first GEM frame can also be sent directly without sending the first GEM frame.
  • the port identifier in is replaced with the first GEM frame in which the first port identifier of the second slave gateway is updated.
  • obtaining the first port identification of the second slave gateway includes: obtaining second configuration information whose port identification is the port identification in the first GEM frame; obtaining the associated port identification in the second configuration information, associating The port identification is the first port identification of the second slave gateway.
  • obtaining the first port identifier of the second slave gateway includes: obtaining the port identifier as the port identifier in the first GEM frame, and the peer device identifier as the first identifier in the first GEM frame.
  • Third configuration information obtain the associated port identifier in the third configuration information, and the associated port identifier is the first port identifier of the second slave gateway.
  • the method before receiving the first GEM frame sent by the first slave gateway, the method further includes: receiving an acquisition request sent by the first slave gateway; wherein the acquisition request is used to acquire the target MAC address.
  • the corresponding first mapping relationship; the first mapping relationship is the mapping relationship between the device identification of the slave gateway and the MAC address; searching for the first mapping relationship corresponding to the target MAC address in the pre-stored first mapping relationship; The first mapping relationship corresponding to the MAC address is sent to the first slave gateway.
  • the acquisition request includes the target MAC address.
  • the method before receiving the acquisition request sent by the first slave gateway, the method further includes: receiving a second mapping relationship shared by the first slave gateway or other slave gateways, and storing or updating the first mapping relationship according to the second mapping relationship. Mapping relations.
  • the second mapping relationship is a mapping relationship between the MAC address stored by the slave gateway after learning the MAC address of the terminal connected to the slave gateway and other device identifiers of the slave gateway.
  • the method before receiving the first GEM frame sent by the first slave gateway, the method further includes: receiving a second mapping relationship shared by the first slave gateway or other slave gateways, and sending the second mapping relationship to all slave gateways.
  • the method further includes: receiving a second GEM frame sent by the first slave gateway, determining that the port identifier in the second GEM frame is used for uplink broadcast, and broadcasting the second GEM frame to the FTTH OLT and all slave gateways. GEM frame.
  • Figure 5 is a flow chart of a communication method applied to a third slave gateway provided by another embodiment of the present application.
  • FIG. 5 Another embodiment of the present application provides a communication method, which is applied to the third gateway.
  • the method includes:
  • Step 500 Receive the first GEM frame sent by the primary gateway; wherein the first GEM frame includes: a port identifier.
  • the GEM frame includes: a GEM frame header and a GEM frame payload field.
  • the GEM frame header includes: PLI, key index (Key Index), port identification (Port ID), reserved fields (Options), LF and HEC.
  • the port identifier may be filled in with the first port identifier of the slave gateway, or may be filled with the second port identifier of the slave gateway.
  • the first port identifier is a port identifier used for communication between ONUs
  • the second port identifier is a port identifier used for communication between ONU and OLT.
  • LF is used to indicate whether it is the last fragment.
  • the first GEM frame further includes: a first identifier.
  • the first identification may be the UNI Node ID of the first slave gateway, or It may be the UNI Node ID of the second slave gateway; wherein the second slave gateway is the slave gateway connected to the second terminal, and the second terminal is the terminal to which the target MAC address in the Ethernet frame belongs.
  • the first identification may also be the device identification of the second slave gateway.
  • the UNI Node ID is used to identify both ends of the communication. For example, 0 and 1 are used to represent two ONUs communicating. For example, ONU1 is represented by 1, and ONU2 is represented by 0.
  • the GEM frame header of the first GEM frame includes: a port identifier and a first identifier.
  • the port identification field of the GEM frame header includes the port identification
  • the reserved field of the GEM frame header includes the first identification
  • At least one bit of the reserved field of the GEM frame header includes the first identification.
  • the first identifier is the UNI Node ID of the first slave gateway, or the first identifier is the UNI Node ID of the second slave gateway
  • in a certain bit of the reserved field of the GEM frame header Includes first identifier.
  • the highest bit of the reserved field includes the first identifier.
  • the first GEM frame further includes: a second identifier, and the second identifier is used to characterize whether the first GEM frame is a GEM frame for communication between ONUs or a GEM frame for communication between an ONU and an OLT.
  • the GEM frame header of the first GEM frame further includes: a second identifier.
  • the reserved field of the GEM frame header further includes: a second identifier.
  • the second identification is located in a bit in the reserved field other than the bits occupied by the first identification.
  • the second identification is located in the reserved field except the highest bit. other bits.
  • Step 501 Determine whether to perform corresponding processing on the first GEM frame based on the port identifier in the first GEM frame and the first identifier in the first GEM frame.
  • determining whether to perform corresponding processing on the first GEM frame according to the port identifier in the first GEM frame includes: determining whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway. , determine whether to perform corresponding processing on the first GEM frame.
  • determining whether to perform corresponding processing on the first GEM frame according to whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway includes at least one of the following:
  • the port identifier in the first GEM frame is the first port identifier of the third slave gateway, determine to perform corresponding processing on the first GEM frame;
  • the port identifier in the first GEM frame is not the first port identifier of the third slave gateway, it is determined not to perform corresponding processing on the first GEM frame.
  • determining whether to perform corresponding processing on the first GEM frame according to the port identifier in the first GEM frame includes: depending on whether there is fourth configuration information associated with the port identifier being the port identifier in the first GEM frame. , determine whether to perform corresponding processing on the first GEM frame.
  • determining whether to perform corresponding processing on the first GEM frame includes at least one of the following:
  • the fourth configuration information does not exist, it is determined not to perform corresponding processing on the first GEM frame.
  • determining whether to perform corresponding processing on the first GEM frame according to the port identifier in the first GEM frame includes: determining according to the port identifier in the first GEM frame and the first identifier in the first GEM frame. Whether to perform corresponding processing on the first GEM frame.
  • the Determining whether to perform corresponding processing on the first GEM frame based on the first identifier in a GEM frame includes: based on whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the third slave gateway in the first GEM frame. Whether the first identifier is the UNI Node ID of the third slave gateway determines whether to process the first GEM frame accordingly.
  • determining whether to perform corresponding processing on the first GEM frame includes at least one of the following:
  • the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the first identifier in the first GEM frame is not the UNI Node ID of the third slave gateway, it is determined that the first GEM frame is processed. Corresponding processing;
  • the port identifier in the first GEM frame is not the first port identifier of the third slave gateway, or the first identifier in the first GEM frame is the UNI Node ID of the third slave gateway, it is determined not to proceed with the first GEM frame. Handle accordingly.
  • determining whether to perform corresponding processing on the first GEM frame includes at least one of the following:
  • the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the first identifier in the first GEM frame is the UNI Node ID of the third slave gateway, it is determined that the first GEM frame is processed Corresponding processing;
  • the port identifier in the first GEM frame is not the first port identifier of the third slave gateway, or the first identifier in the first GEM frame is not the UNI Node ID of the third slave gateway, it is determined not to proceed with the first GEM frame. Handle accordingly.
  • the first identification when the first identification is the device identification of the second secondary gateway, it is determined based on the port identification in the first GEM frame and the first identification in the first GEM frame whether to Performing corresponding processing includes: determining whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and whether the first identifier in the first GEM frame is the device identifier of the third slave gateway. The first GEM frame is processed accordingly.
  • Whether to perform corresponding processing on the first GEM frame includes at least one of the following:
  • the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the first identifier in the first GEM frame is the device identifier of the third slave gateway, it is determined to respond to the first GEM frame. processing;
  • the port identifier in the first GEM frame is not the first port identifier of the third slave gateway, or the first identifier in the first GEM frame is not the device identifier of the third slave gateway, it is determined not to respond to the first GEM frame. processing.
  • the first identification when the first identification is the device identification of the second secondary gateway, it is determined based on the port identification in the first GEM frame and the first identification in the first GEM frame whether to Performing corresponding processing includes: determining whether the associated port identifier is the port identifier in the first GEM frame, and whether the first identifier in the first GEM frame is the device identifier of the third slave gateway. The first GEM frame is processed accordingly.
  • the fourth configuration information exists and the first identifier in the first GEM frame is the device identifier of the third slave gateway, determine to perform corresponding processing on the first GEM frame;
  • the fourth configuration information does not exist, or the first identifier in the first GEM frame is not the device identifier of the third slave gateway, it is determined not to perform corresponding processing on the first GEM frame.
  • performing corresponding processing on the first GEM frame may be any processing performed after receiving the first GEM frame. For example, parse the first GEM frame to get an Ethernet frame.
  • not processing the first GEM frame accordingly includes discarding the first GEM frame.
  • the method before receiving the first GEM frame sent by the primary gateway, the method further includes: receiving an acquisition request sent by the first slave gateway; wherein the acquisition request is used to obtain the corresponding target MAC address.
  • the first mapping relationship; the first mapping relationship is the mapping relationship between the device identification of the slave gateway and the MAC address; search for the first mapping relationship corresponding to the target MAC address in the pre-stored first mapping relationship; convert the target MAC address The corresponding first mapping relationship is sent to the first slave gateway.
  • the method before receiving the first GEM frame sent by the master gateway, the method further includes: receiving a second mapping relationship shared by the first slave gateway or other slave gateways, and saving or updating the first mapping relationship according to the second mapping relationship. Mapping relations.
  • the second mapping relationship is a mapping relationship between the MAC address stored by the slave gateway after learning the MAC address of the terminal connected to the slave gateway and other device identifiers of the slave gateway.
  • the method further includes: receiving a second GEM frame broadcast by the primary gateway.
  • This example describes how to implement communication between ONUs when the slave gateway has not learned the MAC address of the terminal connected to the slave gateway at the beginning of ONU interaction, and the slave gateway connected to the sending terminal cannot obtain the device identification of the slave gateway of the receiving terminal. communication process.
  • the master gateway sends configuration information to each slave gateway through GEM Port Network CTP ME.
  • the port identifier in the configuration information is the port identifier used for upstream broadcast.
  • the communication type in the configuration information is UNI-to-ANI, which is the direction attribute. The value is 1.
  • the slave gateway When the slave gateway receives the Ethernet frame sent by the terminal connected to the slave gateway, it encapsulates the Ethernet frame into the payload field in the second GEM frame, and encapsulates the port ID of the slave gateway used for uplink broadcast into the second GEM. In the port identification field of the GEM frame header of the frame, the second GEM frame is sent to the main gateway.
  • the master gateway receives the second GEM frame, determines that the port identifier in the second GEM frame is used for uplink broadcast, and broadcasts the second GEM frame to the FTTH OLT and all slave gateways.
  • This example describes the process in which the slave gateway learns the MAC address of the terminal connected to the slave gateway and shares the mapping relationship between the MAC address and the device identifier of the slave gateway to the master gateway.
  • slave gateway 1 there are three slave gateways connected to the main gateway, namely slave gateway 1, slave gateway 2 and slave gateway 3; there are two terminals connected to the slave gateway 1, namely terminal 1 and terminal 2; and there are 3 slave gateways connected to the slave gateway 2.
  • terminals There are two terminals, namely terminal 3, terminal 4 and terminal 5; there are two terminals connected from gateway 3, namely terminal 6 and terminal 7.
  • gateway 1 After terminal 1 and terminal 2 access slave gateway 1, the MAC address of terminal 1 is learned from gateway 1, which is MAC address 1, and the MAC address of terminal 2 is learned from gateway 1, which is MAC address 2.
  • Slave gateway 1 locally saves the mapping relationship between MAC address 1 and the device identifier of slave gateway 1, and the mapping relationship between MAC address 2 and the device identifier of slave gateway 1, and uses the saved mapping relationship as the second mapping relationship.
  • the main gateway saves or updates the local first mapping relationship according to the second mapping relationship shared from the slave gateway 1.
  • gateway 2 After terminal 3, terminal 4 and terminal 5 are connected to gateway 2, the MAC address of terminal 3 is learned from gateway 2, which is MAC address 3. The MAC address of terminal 4 is learned from gateway 2 and is MAC address 4. From gateway 2 The MAC address of terminal 5 is learned, which is MAC address 5. Slave gateway 2 locally saves the mapping relationship between MAC address 3 and the device identity of slave gateway 2, as well as the mapping relationship between MAC address 4 and the device identity of slave gateway 2, and the mapping relationship between MAC address 5 and the device identity of slave gateway 2. and the saved mapping relationship is shared with the main gateway as the second mapping relationship. The main gateway saves or updates the local first mapping relationship according to the second mapping relationship shared from the slave gateway 2.
  • gateway 3 After terminal 6 and terminal 7 access slave gateway 3, the MAC address of terminal 6 is learned from gateway 3, which is MAC address 6, and the MAC address of terminal 7 is learned from gateway 3, which is MAC address 7.
  • Slave gateway 3 locally saves the mapping relationship between MAC address 6 and the device identifier of slave gateway 3, and the mapping relationship between MAC address 7 and the device identifier of slave gateway 3, and uses the saved mapping relationship as the second mapping relationship. Shared to the main gateway, the main gateway saves or updates the local first mapping relationship according to the second mapping relationship shared from the slave gateway 3.
  • This example describes the case where the first port identifier is assigned to FTTR ONU1 and FTTR ONU2 for communication, and the value of the first port identifier assigned to ONU1 and the value of the first port identifier assigned to ONU2 are the same. ONU1 and ONU2 communication process between them.
  • the first port identifier is the port identifier used for communication between ONUs.
  • the value of the first port identifier of ONU1 is different from the value of the second port identifier of ONU1.
  • the value of the first port identifier of ONU2 is Different from the value of the second port identifier of ONU2, the second port identifier is the port identifier used for communication between the ONU and the OLT.
  • the main gateway sends configuration information to the slave gateway 1 where ONU1 is located through GEM Port Network CTP ME.
  • the port ID in the configuration information is the assigned first port ID Port-ID1, and the communication type is ONU-to-ONU or UNI.
  • -to-UNI that is, the value of the direction attribute is 4, the UNI Node ID is 0, and the peer device ID is the device ID of slave gateway 2 where ONU2 is located.
  • the main gateway sends configuration information to the slave gateway 2 where ONU2 is located through GEM Port Network CTP ME.
  • the port ID in the configuration information is the assigned first port ID Port-ID1, and the communication type is ONU-to-ONU or UNI.
  • -to-UNI that is, the value of the direction attribute is 4, the UNI Node ID is 1, and the peer device ID is the device ID of slave gateway 1 where ONU1 is located.
  • the process of ONU1 initiating communication to ONU2 includes:
  • the slave gateway 1 where ONU1 is located receives the Ethernet frame sent by terminal 1.
  • the master gateway searches for the first mapping relationship corresponding to the target MAC address in the pre-stored first mapping relationship, and sends the first mapping relationship corresponding to the target MAC address to the slave gateway 1 .
  • the slave gateway 1 receives the first mapping relationship corresponding to the target MAC address sent by the master gateway, and obtains the device identifier in the first mapping relationship corresponding to the target MAC address as the device identifier of the slave gateway 2 .
  • Port-ID1 in the configuration information of the device identifier of slave gateway 1 as the peer device identifier from gateway 1.
  • the peer device identifier as the port identifier of slave gateway 2.
  • the UNI Node ID in the configuration information of the device identification.
  • the main gateway receives the first GEM frame, obtains the configuration information whose port identifier is the port identifier in the first GEM frame, determines that the peer device identifier in the obtained configuration information is not a special value, and determines that the port identifier in the first GEM frame is
  • the port identifier used for communication between ONUs broadcasts the first GEM frame to all slave gateways.
  • the port identifier in the first GEM frame is the first port identifier of slave gateway 2
  • the UNI Node ID in the first GEM frame is not the UNI Node ID of slave gateway 2.
  • This example describes the case where the first port identifier is assigned to FTTR ONU1 and FTTR ONU2 for communication, and the value of the first port identifier assigned to ONU1 and the value of the first port identifier assigned to ONU2 are different, ONU1 and The communication process between ONU2.
  • the first port identifier is the port identifier used for communication between ONUs.
  • the value of the first port identifier of ONU1 is different from the value of the second port identifier of ONU1.
  • the value of the first port identifier of ONU2 is Different from the value of the second port identifier of ONU2, the second port identifier is the port identifier used for communication between the ONU and the OLT.
  • the main gateway sends configuration information to the slave gateway 1 where ONU1 is located through GEM Port Network CTP ME.
  • the port ID in the configuration information is the assigned first port ID Port-ID1, and the communication type is ONU-to-ONU or UNI.
  • -to-UNI that is, the value of the direction attribute is 4,
  • the peer device identifier is the device identifier of slave gateway 2 where ONU2 is located, and the associated port identifier is the first port identifier Port-ID2 allocated by slave gateway 2 where ONU2 is located.
  • the master gateway sends configuration information to slave gateway 2 where ONU2 is located through GEM Port Network CTP ME.
  • the port identifier in the configuration information is the assigned first port identifier Port-ID2, and the communication type is ONU-to-ONU or UNI.
  • -to-UNI that is, the value of the direction attribute is 4,
  • the peer device identifier is the device identifier of slave gateway 1 where ONU1 is located, and the associated port identifier is the first port identifier Port-ID1 allocated by slave gateway 1 where ONU1 is located.
  • the process of ONU1 initiating communication to ONU2 includes:
  • the slave gateway 1 where ONU1 is located receives the Ethernet frame sent by terminal 1.
  • the master gateway searches for the first mapping relationship corresponding to the target MAC address in the pre-stored first mapping relationship, and sends the first mapping relationship corresponding to the target MAC address to the slave gateway 1 .
  • the slave gateway 1 receives the first mapping relationship corresponding to the target MAC address sent by the master gateway, and obtains the device identifier in the first mapping relationship corresponding to the target MAC address as the device identifier of the slave gateway 2 .
  • gateway 1 Obtain from gateway 1 the port identifier Port-ID1 in the configuration information of the device identifier of slave gateway 2 as the peer device identifier, and use it as the first port identifier of slave gateway 1.
  • the identifier is encapsulated into the Option field in the GEM frame header of the first GEM frame as the first identifier, and the encapsulated first GEM frame is sent to the main gateway.
  • the master gateway receives the first GEM frame, determines that there is configuration information whose port identifier is the port identifier in the first GEM frame, and the peer device identifier is the device identifier of slave gateway 2, and determines that the port identifier in the first GEM frame is ONU.
  • the port identifier used for communication between .
  • the master gateway obtains the port identifier as the port identifier in the first GEM frame, and the peer device identifier is the associated port identifier in the configuration information of the device identifier of the slave gateway 2 as the first port identifier Port-ID2 of the slave gateway 2, and uses the second port identifier as the first port identifier Port-ID2 of the slave gateway 2.
  • the port identifier in a GEM frame is replaced with the updated first GEM frame obtained from the first port identifier Port-ID2 of gateway 2, and the updated first GEM frame is broadcast to all slave gateways.
  • An updated first GEM frame is received from gateway 2.
  • the port identifier in the updated first GEM frame is the first port identifier of slave gateway 2, and the first identifier in the first GEM frame is the device identifier of slave gateway 2.
  • the updated first GEM frame is received from gateway 2, the updated first GEM frame is parsed to obtain an Ethernet frame, and the Ethernet frame is sent to terminal 2.
  • This example describes the case where the first port identifier is assigned to FTTR ONU1 and FTTR ONU2 for communication, and the value of the first port identifier assigned to ONU1 and the value of the first port identifier assigned to ONU2 are different, ONU1 and The communication process between ONU2.
  • the first port identifier is the port identifier used for communication between ONUs.
  • the value of the first port identifier of ONU1 is different from the value of the second port identifier of ONU1.
  • the value of the first port identifier of ONU2 is Different from the value of the second port identifier of ONU2, the second port identifier is the port identifier used for communication between the ONU and the OLT.
  • the main gateway sends configuration information to the slave gateway 1 where ONU1 is located through GEM Port Network CTP ME.
  • the port ID in the configuration information is the assigned first port ID Port-ID1, and the communication type is ONU-to-ONU or UNI.
  • -to-UNI that is, the value of the direction attribute is 4,
  • the peer device identifier is the device identifier of slave gateway 2 where ONU2 is located, and the associated port identifier is the first port identifier Port-ID2 allocated by slave gateway 2 where ONU2 is located.
  • the master gateway sends configuration information to slave gateway 2 where ONU2 is located through GEM Port Network CTP ME.
  • the port identifier in the configuration information is the assigned first port identifier Port-ID2, and the communication type is ONU-to-ONU or UNI.
  • -to-UNI that is, the value of the direction attribute is 4,
  • the peer device identifier is the device identifier of slave gateway 1 where ONU1 is located, and the associated port identifier is the first port identifier Port-ID1 allocated by slave gateway 1 where ONU1 is located.
  • the process of ONU1 initiating communication to ONU2 includes:
  • the slave gateway 1 where ONU1 is located receives the Ethernet frame sent by terminal 1.
  • the master gateway searches for the first mapping relationship corresponding to the target MAC address in the pre-stored first mapping relationship, and sends the first mapping relationship corresponding to the target MAC address to the slave gateway 1 .
  • the slave gateway 1 receives the first mapping relationship corresponding to the target MAC address sent by the master gateway, and obtains the device identifier in the first mapping relationship corresponding to the target MAC address as the device identifier of the slave gateway 2 .
  • gateway 1 Obtain from gateway 1 the port identifier Port-ID1 in the configuration information of the device identifier of slave gateway 2 as the peer device identifier, and use it as the first port identifier of slave gateway 1.
  • the identifier is encapsulated into the Option field in the GEM frame header of the first GEM frame as the first identifier, and the encapsulated first GEM frame is sent to the main gateway.
  • the master gateway receives the first GEM frame, determines that there is configuration information whose port identifier is the port identifier in the first GEM frame, and the peer device identifier is the device identifier of slave gateway 2, and determines the port in the first GEM frame.
  • the identifier is the port identifier used for communication between ONUs and broadcasts the first GEM frame to all slave gateways.
  • the port identifier in the first GEM frame is the first port identifier of slave gateway 2
  • the first identifier in the first GEM frame is the device identifier of slave gateway 2
  • Receive the first GEM frame from gateway 2 parse the first GEM frame to obtain an Ethernet frame, and send the Ethernet frame to terminal 2.
  • This example describes the case where the first port identifier is assigned to FTTR ONU1 and FTTR ONU2 for communication, and the value of the first port identifier assigned to ONU1 and the value of the first port identifier assigned to ONU2 are different, ONU1 and The communication process between ONU2.
  • the first port identifier is the port identifier used for communication between ONUs.
  • the value of the first port identifier of ONU1 is the same as the value of the second port identifier of ONU1.
  • the value of the first port identifier of ONU2 is the same.
  • the value is the same as the second port identifier of ONU2.
  • the second port identifier is the port identifier used for communication between the ONU and the OLT.
  • the main gateway sends configuration information to the slave gateway 1 where ONU1 is located through GEM Port Network CTP ME.
  • the port ID in the configuration information is the assigned first port ID Port-ID1, and the communication type is ONU-to-ONU or UNI.
  • -to-UNI that is, the value of the direction attribute is 4,
  • the peer device identifier is the device identifier of slave gateway 2 where ONU2 is located, and the associated port identifier is the first port identifier Port-ID2 allocated by slave gateway 2 where ONU2 is located.
  • the master gateway sends configuration information to slave gateway 2 where ONU2 is located through GEM Port Network CTP ME.
  • the port identifier in the configuration information is the assigned first port identifier Port-ID2, and the communication type is ONU-to-ONU or UNI.
  • -to-UNI that is, the value of the direction attribute is 4,
  • the peer device identifier is the device identifier of slave gateway 1 where ONU1 is located, and the associated port identifier is the first port identifier Port-ID1 allocated by slave gateway 1 where ONU1 is located.
  • the process of ONU1 initiating communication to ONU2 includes:
  • the slave gateway 1 where ONU1 is located receives the Ethernet frame sent by terminal 1.
  • the master gateway searches for the first mapping relationship corresponding to the target MAC address in the pre-stored first mapping relationship, and sends the first mapping relationship corresponding to the target MAC address to the slave gateway 1 .
  • the slave gateway 1 receives the first mapping relationship corresponding to the target MAC address sent by the master gateway, and obtains the device identifier in the first mapping relationship corresponding to the target MAC address as the device identifier of the slave gateway 2 .
  • gateway 1 Obtain from gateway 1 the port identifier Port-ID1 in the configuration information of the device identifier of slave gateway 2 as the peer device identifier, and use it as the first port identifier of slave gateway 1.
  • the identifier is encapsulated into the Option field in the GEM frame header of the first GEM frame as the first identifier
  • the second identifier is encapsulated into the second highest bit in the Option field in the GEM frame header of the first GEM frame.
  • the encapsulated The first GEM frame is sent to the main gateway; wherein the second identifier has a value of 1, which is used to indicate that the first GEM frame is a GEM frame for communication between ONUs.
  • the main gateway receives the first GEM frame, obtains the second identifier in the first GEM frame, determines that the second identifier is used to represent the first GEM frame as a GEM frame for communication between ONUs, and determines that the port identifier in the first GEM frame is The port ID used for communication between ONUs.
  • the master gateway obtains the port identifier as the port identifier in the first GEM frame, and the peer device identifier is the associated port identifier in the configuration information of the device identifier of the slave gateway 2 as the first port identifier Port-ID2 of the slave gateway 2, and uses the second port identifier as the first port identifier Port-ID2 of the slave gateway 2.
  • the port ID in a GEM frame is replaced with the first port ID from gateway 2
  • Port-ID2 obtains the updated first GEM frame and broadcasts the updated first GEM frame to all slave gateways.
  • An updated first GEM frame is received from gateway 2.
  • the port identifier in the updated first GEM frame is the first port identifier of slave gateway 2, and the first identifier in the first GEM frame is the device identifier of slave gateway 2.
  • the updated first GEM frame is received from gateway 2, the updated first GEM frame is parsed to obtain an Ethernet frame, and the Ethernet frame is sent to terminal 2.
  • another embodiment of the present application provides an electronic device, including: at least one processor; and a memory, at least one program is stored on the memory, and when the at least one program is executed by at least one processor, the at least one The processor implements any of the above communication methods.
  • the processor is a device with data processing capabilities, including but not limited to a central processing unit (CPU), etc.
  • the memory is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically such as SDRAM). , DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory (FLASH).
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • FLASH flash memory
  • the processor and memory are connected to each other through a bus, and then to other components of the computing device.
  • another embodiment of the present application provides a computer-readable medium.
  • a computer program is stored on the computer-readable medium.
  • the computer program When executed by a processor, it causes the processor to implement any of the above communication methods.
  • Figure 6 is a block diagram of a communication system provided by another embodiment of the present application.
  • FIG. 6 another embodiment of the present application provides a communication system, including: a first slave gateway 601, configured to receive an Ethernet frame sent by a first terminal; and identifying the first port of the first slave gateway. , and the Ethernet frame is encapsulated into the first GEM frame, and the first GEM frame is sent to the main gateway; where the first port identifier is the port identifier used for communication between optical network units; the main gateway 602 is used to receive the first GEM frame.
  • the first GEM frame is sent to all slave gateways; the third slave gateway 603 is used to receive the first GEM frame sent by the master gateway; wherein the first GEM frame includes: a port identifier and a first identifier; according to the first GEM The port identifier in the frame and the first identifier in the first GEM frame determine whether to perform corresponding processing on the first GEM frame.
  • encapsulating the first port identifier of the first slave gateway and the Ethernet frame into the first Gigabit Passive Optical Network Encapsulation Mode GEM frame includes: converting the first port identifier of the first slave gateway and the first GEM frame. an identifier, and the Ethernet frame is encapsulated into the first GEM frame.
  • the first identifier is the user network interface node identifier of the first slave gateway; or the first identifier is the user network interface node identifier of the second slave gateway; wherein the second slave gateway is the same as the second slave gateway.
  • the slave gateway to which the terminal is connected, the second terminal is the terminal to which the target media access control address in the Ethernet frame belongs.
  • the first slave gateway 601 is further configured to obtain the first port identifier and the first identifier of the first slave gateway.
  • the first slave gateway 601 is specifically configured to obtain the first port identifier and the first identifier of the first slave gateway in the following manner: according to the target media access control address in the Ethernet frame. Obtain the device identifier of the second slave gateway; obtain the first port identifier and first identifier of the first slave gateway according to the device identifier of the second slave gateway.
  • the first slave gateway 601 is specifically configured to obtain the device identification of the second slave gateway according to the target media access control address in the Ethernet frame in the following manner: in the pre-stored slave gateway device In the first mapping relationship between the identifier and the media access control address, search for the device identifier corresponding to the target media access control address, and the found device identifier is the second slave The device ID of the gateway.
  • the first slave gateway 601 is also configured to: obtain a second mapping relationship shared by other slave gateways, and store or update the first mapping relationship according to the second mapping relationship.
  • the first slave gateway 601 is specifically configured to obtain the device identification of the second slave gateway according to the target media access control address in the Ethernet frame in the following manner: sending an acquisition request to the master gateway. ; Wherein, the acquisition request is used to obtain the first mapping relationship corresponding to the target media access control address; the first mapping relationship is the mapping relationship between the device identification of the slave gateway and the media access control address; receiving the The first mapping relationship corresponding to the target media access control address sent by the main gateway is used to obtain the device identifier in the first mapping relationship corresponding to the target media access control address.
  • the main gateway 602 is also configured to: receive the acquisition request sent by the first slave gateway, search for the first mapping relationship corresponding to the target media access control address in the pre-stored first mapping relationship, and convert the first mapping relationship corresponding to the target media access control address to The relationship is sent to the first slave gateway.
  • the first slave gateway 601 is specifically configured to obtain the device identification of the second slave gateway according to the target media access control address in the Ethernet frame in the following manner: sending an acquisition request to other gateways; wherein , the acquisition request is used to obtain the first mapping relationship corresponding to the target media access control address; the first mapping relationship is the mapping relationship between the device identification of the slave gateway and the media access control address; receiving the other gateway The first mapping relationship corresponding to the target media access control address is sent, and the device identifier in the first mapping relationship corresponding to the target media access control address is obtained.
  • the third slave gateway 603 is also configured to: receive the acquisition request sent by the first slave gateway, search for the first mapping relationship corresponding to the target media access control address in the pre-stored first mapping relationship, and obtain the first mapping relationship corresponding to the target media access control address. A mapping relationship is sent to the first slave gateway.
  • the first slave gateway 601 is specifically configured to obtain the first port identity and first identity of the first slave gateway according to the device identity of the second slave gateway in the following manner: Obtain peer The device identifier is the first configuration information of the device identifier of the second slave gateway; the port identifier in the first configuration information is obtained as the first port identifier of the first slave gateway; and the first identifier is the first port identifier of the second slave gateway.
  • the user network interface node identifier of the first slave gateway is the user network interface node identifier of the first slave gateway, obtain the user network interface node identifier in the first configuration information; when the first identifier is the user network interface node identifier of the second slave gateway In this case, the first identification is obtained according to the user network interface node identification in the first configuration information.
  • the first identification is the device identification of the second slave gateway; wherein the second slave gateway is a slave gateway connected to the second terminal, and the second terminal accesses the target media in the Ethernet frame. Control the terminal to which the address belongs.
  • the first slave gateway 601 is further configured to: obtain the device identification of the second slave gateway according to the target media access control address; obtain the device identification of the second slave gateway according to the device identification of the second slave gateway. A first port ID of the slave gateway.
  • the first slave gateway 601 is specifically configured to encapsulate the first port identifier and the first identifier of the first slave gateway and the Ethernet frame into the first gigabit passive optical fiber in the following manner: Network encapsulation mode GEM frame: encapsulate the Ethernet frame into the payload field in the first GEM frame, and encapsulate the first port identifier and first identifier of the first slave gateway into the first GEM frame in the GEM frame header.
  • the first slave gateway 601 is specifically configured to encapsulate the first port identifier and the first identifier of the first slave gateway into the GEM frame header in the first GEM frame in the following manner. : Encapsulate the first port identification of the first slave gateway into the port identification field in the GEM frame header , encapsulate the first identifier into a reserved field in the GEM frame header.
  • the first slave gateway 601 is specifically configured to encapsulate the first identifier into a reserved field in the GEM frame header in the following manner: encapsulate the first identifier into any of the reserved fields. in one bit.
  • the first slave gateway 601 is specifically configured to encapsulate the first identifier into any bit in the reserved field in the following manner: encapsulate the first identifier into the highest bit in the reserved field. in bits.
  • the first slave gateway 601 is specifically configured to encapsulate the first port identifier and the first identifier of the first slave gateway into the GEM frame header in the first GEM frame in the following manner. : Encapsulate the first port identifier, first identifier and second identifier of the first slave gateway into the GEM frame header in the first GEM frame; wherein the second identifier is used to characterize the first
  • the GEM frame is a GEM frame for communication between optical network units, or a GEM frame for communication between optical network units and optical line terminals.
  • the first slave gateway 601 is specifically configured to encapsulate the first port identifier, the first identifier, and the second identifier of the first slave gateway into the first GEM frame in the following manner.
  • the GEM frame header encapsulate the first port identification of the first slave gateway into the port identification field in the GEM frame header, and encapsulate the first identification and the second identification into the reserved fields in the GEM frame header. middle.
  • the main gateway 602 is specifically configured to use the following method to determine that the port identifier in the first GEM frame is a port identifier used for communication between optical network units: obtain the port identifier as the The second configuration information of the port identifier in the first GEM frame; it is determined that the peer device identifier in the second configuration information is not a special value.
  • the main gateway 602 is specifically configured to determine that the port identifier in the first GEM frame is a port identifier used for communication between optical network units in the following manner: determine that there is a port identifier of The port identifier in the first GEM frame, and the peer device identifier is the third configuration information of the first identifier in the first GEM frame.
  • the first GEM frame further includes: a second identifier.
  • the second identifier is used to characterize whether the first GEM frame is a GEM frame for communication between optical network units, or a GEM frame for communication between optical network units and optical network units.
  • GEM frame for communication between line terminals; the main gateway 602 is specifically configured to use the following method to determine that the port identifier in the first GEM frame is the port identifier used for communication between optical network units: obtain the second identifier; It is determined that the preset identifier is used to characterize the first GEM frame as a GEM frame for communication between optical network units.
  • the master gateway 602 is also configured to: obtain the first port identifier of the second slave gateway; and replace the port identifier in the first GEM frame with the first port identifier of the second slave gateway. Obtain an updated first GEM frame; send the updated first GEM frame.
  • the master gateway 602 is specifically configured to obtain the first port identification of the second slave gateway in the following manner: obtaining the port identification as the second configuration information of the port identification in the first GEM frame; obtaining the second configuration information of the second slave gateway.
  • the associated port identifier in the second configuration information is the first port identifier of the second slave gateway.
  • the third slave gateway 603 is specifically configured to determine whether to perform corresponding processing on the first GEM frame according to the port identifier in the first GEM frame in the following manner: Whether the port identifier in the GEM frame is the first port identifier of the third slave gateway determines whether to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to use at least one of the following methods to determine whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway. Perform corresponding processing on the first GEM frame:
  • the port identifier in the first GEM frame is the first port identifier of the third slave gateway, In this case, determine to perform corresponding processing on the first GEM frame;
  • the port identifier in the first GEM frame is not the first port identifier of the third slave gateway, it is determined not to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to determine whether to perform corresponding processing on the first GEM frame based on the port identifier in the first GEM frame in the following manner: based on whether there is an associated port.
  • the fourth configuration information identified as the port identifier in the first GEM frame determines whether to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to use at least one of the following methods to determine whether to modify the port ID of the port according to whether there is fourth configuration information associated with the port ID in the first GEM frame.
  • the first GEM frame is processed accordingly:
  • the fourth configuration information does not exist, it is determined not to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to determine whether to perform corresponding processing on the first GEM frame according to the port identifier in the first GEM frame in the following manner: The port identifier in the GEM frame and the first identifier in the first GEM frame determine whether to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to determine whether to use the following method according to the port identifier in the first GEM frame and the first identifier in the first GEM frame.
  • the GEM frame is processed accordingly: whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and whether the first identifier in the first GEM frame is the third slave gateway. Based on the user network interface node identification of the gateway, it is determined whether to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to adopt at least one of the following methods to implement the method according to whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the Whether the first identifier in the first GEM frame is the user network interface node identifier of the third slave gateway, determine whether to perform corresponding processing on the first GEM frame:
  • the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the first identifier in the first GEM frame is not the user network interface node identifier of the third slave gateway. In this case, determine to perform corresponding processing on the first GEM frame;
  • the port identifier in the first GEM frame is not the first port identifier of the third slave gateway, or the first identifier in the first GEM frame is the user network interface node identifier of the third slave gateway. In this case, it is determined not to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to determine whether to use the following method according to the port identifier in the first GEM frame and the first identifier in the first GEM frame.
  • the GEM frame is processed accordingly: determine whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and whether the first identifier in the first GEM frame is the device identifier of the third slave gateway.
  • the first GEM frame is processed accordingly.
  • the third slave gateway 603 is specifically configured to adopt at least one of the following methods to implement the method according to whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the Whether the first identifier in the first GEM frame is the device identifier of the third slave gateway determines whether to perform corresponding processing on the first GEM frame:
  • the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the first identifier in the first GEM frame is the device identifier of the third slave gateway, Determine to perform corresponding processing on the first GEM frame;
  • the port identifier in the first GEM frame is not the first port identifier of the third slave gateway, or the first identifier in the first GEM frame is not the device identifier of the third slave gateway, It is determined to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to adopt at least one of the following methods to implement the method according to whether the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the Whether the first identifier in the first GEM frame is the device identifier of the third slave gateway determines whether to perform corresponding processing on the first GEM frame:
  • the port identifier in the first GEM frame is the first port identifier of the third slave gateway, and the first identifier in the first GEM frame is the user network interface node identifier of the third slave gateway. In this case, determine to perform corresponding processing on the first GEM frame;
  • the port identifier in the first GEM frame is not the first port identifier of the third slave gateway, or the first identifier in the first GEM frame is not the user network interface node identifier of the third slave gateway. In this case, it is determined not to perform corresponding processing on the first GEM frame.
  • the third slave gateway 603 is specifically configured to determine whether to use the following method according to the port identifier in the first GEM frame and the first identifier in the first GEM frame.
  • the GEM frame is processed accordingly: based on whether there is fourth configuration information associated with the port identifier being the port identifier in the first GEM frame, and whether the first identifier in the first GEM frame is the device of the third slave gateway. identification to determine whether to perform corresponding processing on the first GEM frame.
  • Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media).
  • computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassettes, tapes, disk storage or other magnetic storage, or may be used Any other medium that stores the desired information and can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
  • Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted in a general illustrative sense only and not for purpose of limitation. In some instances, it will be apparent to those skilled in the art that features, characteristics and/or elements described in connection with a particular embodiment may be used alone, or may be used in conjunction with other embodiments, unless expressly stated otherwise. Features and/or components are used in combination. Accordingly, it will be understood by those skilled in the art that various changes in form and details may be made without departing from the scope of the present application as set forth in the appended claims.

Landscapes

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

Abstract

本申请提供了一种通信方法和系统、电子设备、计算机可读介质,通信方法包括:接收第一终端发送的以太网帧;将第一从网关的第一端口标识,以及所述以太网帧封装成第一吉比特无源光网络封装模式GEM帧,将第一GEM帧发送给主网关;其中,所述第一端口标识为光网络单元之间进行通信时使用的端口标识。

Description

通信方法和系统、电子设备、计算机可读介质 技术领域
本申请实施例涉及无源光网络(PON,Passive Optical Network)技术领域,特别涉及通信方法和系统、电子设备、计算机可读介质。
背景技术
随着PON技术的应用和发展,逐渐从光纤入户(FTTH,Fiber to the Home)延伸进家庭,国内国际标准都开始相应的标准化,逐渐发展成了光纤到远端节点(FTTR,Fiber to the Room)。FTTR既可以通过接入网接入互联网(Internet),也可以组建成一个局域网络,实现家庭内部的互联通信。
在实际应用中,如图1所示,一般FTTH光网络单元(ONU,Optical Network Unit)和FTTR光线路终端(OLT,Optical Line Terminal)是集成在一个设备中的,可以称为主网关。主网关具有上联光口和下联光口,主网关通过上联光口与FTTH OLT连接,按照FTTH ONU进行工作,主网关通过下联光口与FTTR ONU连接,按照FTTR OLT进行工作。
FTTR ONU和接入点(AP,Access Point)也是集成在一个设备中的,可以称为从网关。从网关具有上联光口和无线接口,从网关通过上联光口与FTTR OLT连接,按照FTTR ONU进行工作,从网关通过无线接口与终端连接,按照接入点(AP,Access Point)进行工作。
传统的PON中,FTTR ONU之间的通信时延比较大。
发明内容
本申请实施例提供一种通信方法和系统、电子设备、计算机可读介质。
第一方面,本申请实施例提供一种通信方法,应用于第一从网关,该方法包括:接收第一终端发送的以太网帧;将第一从网关的第一端口标识,以及所述以太网帧封装成第一吉比特无源光网络封装模式GEM帧,将第一GEM帧发送给主网关;其中,所述第一端口标识为光网络单元之间进行通信时使用的端口标识。
第二方面,本申请实施例提供一种通信方法,应用于主网关,该方法包括:接收第一从网关发送的第一吉比特无源光网络封装模式GEM帧;其中,第一GEM帧包括:端口标识;在判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识的情况下,向所有从网关发送所述第一GEM帧。
第三方面,本申请实施例提供一种通信方法,应用于第三从网关,该方法包括:接收主网关发送的第一吉比特无源光网络封装模式GEM帧;其中,第一GEM帧包括:端口标识;根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理。
第四方面,本申请实施例提供一种电子设备,包括:至少一个处理器;存储器,存储器上存储有至少一个程序,当所述至少一个程序被所述至少一个处理器执行时,使得所述至少一个处理器实现上述任意一种通信方法。
第五方面,本申请实施例提供一种计算机可读介质,计算机可读介质上存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器实现上述任意一种通信方法。
第六方面,本申请实施例提供一种通信系统,包括:第一从网关,用于接收第一终端发送的以太网帧;将第一从网关的第一端口标识,以及所述以太网帧封装成第一吉比特无源光网络封装模式GEM帧,将第一GEM帧发送给主网关;其中,所述第一端口标识为光网络单元之间进行通信时使用的端口标识;主网关,用于接收第一从网关发送的第一GEM帧;其中,所述第一GEM帧包括:端口标识;在判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识的情况下,向所有从网关发送所述第一GEM帧;第三从网关,用于接收主网关发送的第一GEM帧;其中,所述第一GEM帧包括:端口标识;根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理。
本申请实施例提供的通信方法,基于ONU之间进行通信时使用的端口标识进行ONU之间的通信,而不是基于ONU和OLT之间进行通信时使用的端口标识进行ONU之间的通信,使得在主网关在进行转发时不需要对第一GEM帧进行解析,即不需要通过主网关的以太网层或IP层实现ONU之间的业务转发,仅在主网关的PON协议层实现即可,从而减小了时延。
附图说明
图1为相关技术中PON系统结构示意图;
图2为本申请一个实施例提供的应用于第一从网关的通信方法的流程图;
图3为本申请实施例的GEM帧的帧结构示意图;
图4为本申请另一个实施例提供的应用于主网关的通信方法的流程图;
图5为本申请另一个实施例提供的应用于第三从网关的通信方法的流程图;
图6为本申请另一个实施例提供的通信系统的组成框图。
具体实施方式
为使本领域的技术人员更好地理解本申请的技术方案,下面结合附图对本申请提供的通信方法和系统、电子设备、计算机可读介质进行详细描述。
在下文中将参考附图更充分地描述示例实施例,但是所述示例实施例可以以不同形式来体现且不应当被解释为限于本文阐述的实施例。反之,提供这些实施例的目的在于使本申请透彻和完整,并将使本领域技术人员充分理解本申请的范围。
在不冲突的情况下,本申请各实施例及实施例中的各特征可相互组合。
如本文所使用的,术语“和/或”包括至少一个相关列举条目的任何和所有组合。
本文所使用的术语仅用于描述特定实施例,且不意欲限制本申请。如本文所使用的,单数形式“一个”和“该”也意欲包括复数形式,除非上下文另外清楚指出。还将理解的是,当本说明书中使用术语“包括”和/或“由……制成”时,指定存在所述特征、整体、步骤、操作、元件和/或组件,但不排除存在或添加至少一个其它特征、整体、步骤、操作、元件、组件和/或其群组。
除非另外限定,否则本文所用的所有术语(包括技术和科学术语)的含义与本领域普通技术人员通常理解的含义相同。还将理解,诸如那些在常用字典中限定的那些术语应当被解释为具有与其在相关技术以及本申请的背景下的含义一致的含义,且将不解释为具有理想化或过度形式上的含义,除非本文明确如此限定。
传统的PON中,FTTR ONU之间可以通过主网关中转实现互联通信,一般实现方式为,在FTTR OLT和FTTR ONU之间配置吉比特无源光网络(GPON, Gigabit-Capable Passive Optical Network)封装模式(GEM,GPON Encapsulation Method)端口标识(Port-ID,Port IDentification)以实现FTTR OLT和FTTR ONU之间的通信,再由FTTR OLT为FTTR ONU之间的通信进行转发。
目前需要通过主网关的以太网层或者互联网协议(IP,Internet Protocol)层实现FTTR ONU之间的业务转发,会带来较大的时延。例如,FTTR ONU之间的通信的一种实现方式为,FTTR OLT从GEM帧中解析出以太网帧,从以太网帧中获取目标媒体访问控制(MAC,Media Access Control)地址,将目标MAC地址映射为目标GEM Port-ID,采用目标GEM Port-ID将以太网帧重新封装得到新的GEM帧,发送新的GEM帧。在这个过程中,对在PON协议层对GEM帧进行解析以及以太网帧的重新封装为GEM帧之外,还需要在以太网层完成目标MAC地址的解析及目标MAC地址与GEM Port-ID的映射,因此会带来较大的时延。在某些场景下还需要实现目标IP地址和目标GEM Port-ID之间的映射,即需要在IP层中实现,同样也会存在带宽较大的时延。
图2为本申请一个实施例提供的应用于第一从网关的通信方法的流程图。
第一方面,参照图2,本申请一个实施例提供一种通信方法,应用于第一从网关,该方法包括:
步骤200,接收第一终端发送的以太网帧。
步骤201,将第一从网关的第一端口标识,以及以太网帧封装成第一GEM帧,将第一GEM帧发送给主网关;其中,第一端口标识为ONU之间进行通信时使用的端口标识。
在一些示例性实施例中,如图3所示,GEM帧包括:GEM帧头和GEM帧净荷域。
在一些示例性实施例中,GEM帧头包括:净荷长度指示(PLI,Payload Length Indication)、密钥索引(Key Index)、端口标识(Port ID)、保留字段(Options)、最后一个片段(LF,Last Fragment)和混合纠错(HEC,Hybrid Error Correction)。
在一些示例性实施例中,端口标识可以填写从网关的第一端口标识,也可以填写从网关的第二端口标识。其中,第一端口标识为ONU之间进行通信时使用的端口标识,第二端口标识为ONU和OLT之间进行通信时使用的端口标识。
在一些示例性实施例中,LF用于指示是否是最后一个片段。
在一些示例性实施例中,将第一从网关的第一端口标识,以及以太网帧封装成第一GEM帧包括:将以太网帧封装到第一GEM帧中的净荷域,将第一从网关的第一端口标识封装到第一GEM帧中的GEM帧头中。
在一些示例性实施例中,将第一从网关的第一端口标识封装到第一GEM帧中的GEM帧头中包括:将第一从网关的第一端口标识封装到GEM帧头中的端口标识字段中。
在一些示例性实施例中,将第一从网关的第一端口标识,以及以太网帧封装成第一GEM帧包括:将第一从网关第一端口标识和第一标识,以及以太网帧封装成第一GEM帧。
在一些示例性实施例中,第一标识可以是第一从网关的用户网络接口(UNI,User Network Interface)节点标识(Node ID,Node IDentification),也可以是第二从网关的UNI Node ID;其中,第二从网关为与第二终端连接的从网关,第二终端为以太网帧中的目标MAC地址所属的终端。
在一些示例性实施例中,第一标识也可以是第二从网关的设备标识。
在一些示例性实施例中,UNI Node ID用于标识进行通信的两端。例如,用0和1表示进行通信的两个ONU,如ONU1用1表示,ONU2用0表示。
在一些示例性实施例中,将第一从网关的第一端口标识和第一标识,以及以太网帧封装成第一GEM帧包括:将以太网帧封装到第一GEM帧中的净荷域,将第一从网关的第一端口标识和第一标识封装到第一GEM帧中的GEM帧头中。
在一些示例性实施例中,将第一从网关的第一端口标识和第一标识封装到第一GEM帧中的GEM帧头中包括:将第一从网关的第一端口标识封装到GEM帧头中的端口标识字段中,将第一标识封装到GEM帧头中的保留字段中。
在一些示例性实施例中,在第一标识为第一从网关的UNI Node ID,或第一标识为第二从网关的UNI Node ID的情况下,将第一标识封装到GEM帧头中的保留字段中包括:将第一标识封装到保留字段中的任意一个比特中。
在一些示例性实施例中,将第一标识封装到保留字段中的任意一个比特中包括:将第一标识封装到保留字段中的最高位比特中。
在一些示例性实施例中,在第一标识为第二从网关的设备标识的情况下,将第一标识封装到GEM帧头中的保留字段中包括:将第一标识封装到保留字段中的至少一个比特中。
在一些示例性实施例中,将第一从网关的第一端口标识和第一标识封装到第一GEM帧中的GEM帧头中包括:将第一从网关的第一端口标识、第一标识和第二标识封装到第一GEM帧中的GEM帧头中;其中第二标识用于表征第一GEM帧为ONU之间通信的GEM帧,还是ONU和OLT之间通信的GEM帧。
在一些示例性实施例中,将第一从网关的第一端口标识、第一标识和第二标识封装到第一GEM帧中的GEM帧头中包括:将第一从网关的第一端口标识封装到GEM帧头中的端口标识字段中,将第一标识和第二标识封装到GEM帧头中的保留字段中。
在一些示例性实施例中,将第一标识和第二标识封装到GEM帧头中的保留字段中的不同比特位中。
在一些示例性实施例中,在第一标识为第一从网关的UNI Node ID,或第一标识为第二从网关的UNI Node ID的情况下,将第一标识封装到保留字段中的任意一个比特中,将第二标识封装到保留字段中除第一标识占用的比特之外的其他任意一个比特中。例如,将第一标识封装到保留字段中的最高比特中,将第二标识封装到保留字段中除最高比特之外的其他任意一个比特中。
在一些示例性实施例中,在第一标识为第二从网关的设备标识的情况下,将第一标识封装到保留字段中的至少一个比特中,将第二标识封装到保留字段中除第一标识占用的比特之外的其他任意一个比特中。
在一些示例性实施例中,如果没有将第二标识封装到第一GEM帧中,那么同一个从网关的第一端口标识和第二端口标识的取值不同,以区分第一GEM帧是ONU之间通信的GEM帧,还是ONU和OLT之间通信的GEM帧。
如果将第二标识封装到第一GEM帧中,那么同一个从网关的第一端口标识和第二端口标识的取值可以相同,也可以不同。通过第二标识区分第一GEM帧是ONU之间通信的GEM帧,还是ONU和OLT之间通信的GEM帧。在同一个网关的第一端口标识和第二端口标识的取值相同的情况下,节省了端口标识资源。
在一些示例性实施例中,在第一GEM帧中没有封装第一标识的情况下,接收第一终端发送的以太网帧后,在将第一从网关的第一端口标识,以及以太网帧封装成第一GEM帧之前,该方法还包括:获取第一从网关的第一端口标识。
在一些示例性实施例中,获取第一从网关的第一端口标识包括:根据以太 网帧中的目标MAC地址获取第二从网关的设备标识;其中,第二从网关为与目标MAC地址所属的第二终端连接的从网关;根据第二从网关的设备标识获取第一从网关的第一端口标识。
在一些示例性实施例中,根据第二从网关的设备标识获取第一从网关的第一端口标识包括:获取对等设备标识为第二从网关的设备标识的第一配置信息;获取第一配置信息中的端口标识作为第一从网关的第一端口标识。
在一些示例性实施例中,在第一GEM帧中封装第一标识;并且第一标识为第一从网关的UNI Node ID,或第一标识为第二从网关的UNI Node ID的情况下,接收第一终端发送的以太网帧后,在将第一从网关的第一端口标识和第一标识,以及以太网帧封装成第一GEM帧之前,该方法还包括:获取第一从网关的第一端口标识和第一标识。
在一些示例性实施例中,获取第一从网关的第一端口标识和第一标识包括:根据以太网帧中的目标MAC地址获取第二从网关的设备标识;其中,第二从网关为与目标MAC地址所属的第二终端连接的从网关;根据第二从网关的设备标识获取第一从网关的第一端口标识和第一标识。
在一些示例性实施例中,根据以太网帧中的目标MAC地址获取第二从网关的设备标识包括:在预先存储的从网关的设备标识和MAC地址之间的第一映射关系中,查找目标MAC地址对应的设备标识,查找到的设备标识即为第二从网关的设备标识。
在一些示例性实施例中,从网关的设备标识可以是ONU ID。
在一些示例性实施例中,针对每一个从网关,如本申请实施例提及的第一从网关和第二从网关,与从网关连接的终端(如本申请实施例中提及的第一终端和第二终端)接入从网关后,从网关可以学习到终端的MAC地址,并进一步保存学习到的MAC地址和从网关的设备标识之间的第一映射关系。
在一些示例性实施例中,查找目标MAC地址对应的设备标识之前,该方法还包括:获取其他从网关共享的第二映射关系,根据第二映射关系存储或更新第一映射关系。
在一些示例性实施例中,第二映射关系是其他从网关在学习到与其他从网关连接的终端的MAC地址后存储的MAC地址和其他从网关的设备标识之间的映射关系。
在一些示例性实施例中,其他从网关可以采用多种方式共享第二映射关系,如其他从网关在学习到与所述其他从网关连接的终端的MAC地址后将第二映射关系进行共享,具体可以共享到主网关,可以是不同从网关之间相互共享。
在一些示例性实施例中,根据以太网帧中的目标MAC地址获取第二从网关的设备标识包括:向主网关发送获取请求;其中,获取请求用于获取目标MAC地址对应的第一映射关系;第一映射关系为从网关的设备标识和MAC地址之间的映射关系;接收主网关发送的目标MAC地址对应的第一映射关系,获取目标MAC地址对应的第一映射关系中的设备标识。
在一些示例性实施例中,获取请求包括目标MAC地址。
在一些示例性实施例中,根据以太网帧中的目标MAC地址获取第二从网关的设备标识包括:向其他网关发送获取请求;其中,获取请求用于获取目标MAC地址对应的第一映射关系;第一映射关系为从网关的设备标识和MAC地址之间的映射关系;接收其他网关发送的目标MAC地址对应的第一映射关系,获取目标MAC地址对应的第一映射关系中的设备标识。
在一些示例性实施例中,根据第二从网关的设备标识获取第一从网关的第 一端口标识和第一标识包括:获取对等设备标识为第二从网关的设备标识的第一配置信息;获取第一配置信息中的端口标识作为第一从网关的第一端口标识;在所述第一标识为第一从网关的UNI Node ID的情况下,获取所述第一配置信息中的UNI Node ID,获得的UNI Node ID即为第一标识;在第一标识为第二从网关的UNI Node ID的情况下,根据第一配置信息中的UNI Node ID获取第一标识。
例如,用0和1表示进行通信的两个ONU,假设第一配置信息中的UNI Node ID为0,则可以确定第一标识为1;第一配置信息中的UNI Node ID为1,则可以确定第一标识为0。
在一些示例性实施例中,对等设备标识可以是对等ONU ID。
在一些示例性实施例中,任意两个从网关之间的通信对应有一个配置信息,即GEM端口网络(GEM Port Network)连接終端点(CTP,Connection Terminal Point)维护实体(ME,Maintenance Entity),该GEM Port Network CTP ME与传输容器(T-CONT,Transmission Container)和GEM IW TP ME相关联。
在一些示例性实施例中,GEM Port Network CTP ME包括以下属性:
管理实体标识(Managed Entity ID),这个属性用于唯一标识GEM Port Network CTP ME的一个实例。
端口标识(Port ID),这个属性用于标识与GEM Port Network CTP ME相关联的GEM端口的端口标识。
T-CONT指针(T-CONT Pointer),这个属性指向一个T-CONT实例。
方向(Direction),这个属性描述GEM端口是否用于UNI-to-ANI,ANI-to-UNI,双向连接,或双向UNI-to-UNI。例如,这个属性取值为1时,表示GEM端口用于UNI-to-ANI;这个属性取值为2时,表示GEM端口用于ANI-to-UNI;这个属性取值为3时,表示GEM端口用于双向连接;这个属性取值为4时,表示GEM端口用于双向UNI-to-UNI。
对等设备标识,这个属性用于标识通信的另一个从网关的设备标识。
其中,UNI-to-UNI是本申请实施例中新增加的通信类型,表示ONU和ONU之间的通信。
其中,UNI Node ID是本申请实施例中新增加的属性。
其中,对等设备标识是本申请实施例中新增加的属性。
在一些示例性实施例中,GEM Port Network CTP ME还包括:关联端口标识,这个属性用于描述与所述主网关通信的ONU所在的从网关的第一端口标识。
在一些示例性实施例中,GEM Port Network CTP ME还包括:UNI Node ID,这个属性表示通信的两端。
在一些示例性实施例中,在第一标识为第二从网关的设备标识的情况下,接收第一终端发送的以太网帧后,在将第一从网关的第一端口标识和第一标识,以及以太网帧封装成第一GEM帧之前,该方法还包括:根据目标MAC地址获取第二从网关的设备标识;根据第二从网关的设备标识获取第一从网关的第一端口标识。
在一些示例性实施例中,根据第二从网关的设备标识获取第一从网关的第一端口标识包括:获取对等设备标识为第二从网关的设备标识的第一配置信息;获取第一配置信息中的端口标识作为第一从网关的第一端口标识。
在一些示例性实施例中,在获取不到第二从网关的设备标识的情况下,该方法还包括:将用于上行广播的端口标识和以太网帧封装成第二GEM帧,向主网关发送第二GEM帧。
在一些示例性实施例中,将用于上行广播的端口标识和以太网帧封装成第二GEM帧包括:将用于上行广播的端口标识封装到第二GEM帧的GEM帧头中的端口标识字段中,将以太网帧封装到第二GEM帧的净荷域中。
本申请实施例提供的通信方法,基于ONU之间进行通信时使用的端口标识进行ONU之间的通信,而不是基于ONU和OLT之间进行通信时使用的端口标识进行ONU之间的通信,使得在主网关在进行转发时不需要对第一GEM帧进行解析,即不需要通过主网关的以太网层或IP层实现ONU之间的业务转发,仅在主网关的PON协议层实现即可,从而减小了时延。
图4为本申请另一个实施例提供的应用于主网关的通信方法的流程图。
第二方面,参照图4,本申请另一个实施例提供一种通信方法,应用于主网关,该方法包括:
步骤400,接收第一从网关发送的第一GEM帧;其中,第一GEM帧包括:端口标识。
在一些示例性实施例中,如图3所示,第一GEM帧包括:GEM帧头和GEM帧净荷域。
在一些示例性实施例中,GEM帧头包括:PLI、密钥索引(Key Index)、端口标识(Port ID)、保留字段(Options)、LF和HEC。
在一些示例性实施例中,端口标识可以填写从网关的第一端口标识,也可以填写从网关的第二端口标识。其中,第一端口标识为ONU之间进行通信时使用的端口标识,第二端口标识为ONU和OLT之间进行通信时使用的端口标识。
在一些示例性实施例中,LF用于指示是否是最后一个片段。
在一些示例性实施例中,第一GEM帧还包括:第一标识。
在一些示例性实施例中,第一标识可以是第一从网关的UNI Node ID,也可以是第二从网关的UNI Node ID;其中,第二从网关为与第二终端连接的从网关,第二终端为以太网帧中的目标MAC地址所属的终端。
在一些示例性实施例中,第一标识也可以是第二从网关的设备标识。
在一些示例性实施例中,UNI Node ID用于标识进行通信的两端。例如,用0和1表示进行通信的两个ONU,如ONU1用1表示,ONU2用0表示。
在一些示例性实施例中,第一GEM帧的GEM帧头中包括:端口标识和第一标识。
在一些示例性实施例中,GEM帧头的端口标识字段中包括端口标识,GEM帧头的保留字段中包括第一标识。
在一些示例性实施例中,在第一标识为第二从网关的设备标识的情况下,GEM帧头的保留字段的至少一个比特中包括第一标识。
在一些示例性实施例中,在第一标识为第一从网关的UNI Node ID,或第一标识为第二从网关的UNI Node ID的情况下,GEM帧头的保留字段的某一个比特中包括第一标识。
在一些示例性实施例中,保留字段的最高比特中包括第一标识。
在一些示例性实施例中,第一GEM帧中还包括:第二标识,第二标识用于表征第一GEM帧为ONU之间通信的GEM帧,还是ONU和OLT之间通信的GEM帧。
在一些示例性实施例中,第一GEM帧的GEM帧头还包括:第二标识。
在一些示例性实施例中,GEM帧头的保留字段中还包括:第二标识。
在一些示例性实施例中,第二标识位于保留字段中除第一标识占用的比特之外的比特。
在一些示例性实施例中,在第一标识为第一从网关的UNI Node ID,或第 一标识为第二从网关的UNI Node ID的情况下,第二标识位于保留字段中除最高比特之外的其他比特。
步骤401,在判断出第一GEM帧中的端口标识为ONU之间进行通信时使用的端口标识的情况下,向所有从网关发送第一GEM帧。
在一些示例性实施例中,判断出第一GEM帧中的端口标识为ONU之间进行通信时使用的端口标识包括:获取端口标识为第一GEM帧中的端口标识的第二配置信息;判断出第二配置信息中的对等设备标识不是特殊值。
在一些示例性实施例中,在判断出第二配置信息中的对等设备标识为特殊值的情况下,判断出第一GEM帧中的端口标识为ONU和OLT之间进行通信时使用的端口标识。
在一些示例性实施例中,任意两个从网关之间的通信对应有一个配置信息,即GEM Port Network CTP ME,该GEM Port Network CTP ME与T-CONT和GEM IW TP ME相关联。
在一些示例性实施例中,GEM Port Network CTP ME包括以下属性:
管理实体标识(Managed Entity ID),这个属性用于唯一标识GEM Port Network CTP ME的一个实例。
端口标识(Port ID),这个属性用于标识与GEM Port Network CTP ME相关联的GEM端口的端口标识。
T-CONT指针(T-CONT Pointer),这个属性指向一个T-CONT实例。
方向(Direction),这个属性描述GEM端口是否用于UNI-to-ANI,ANI-to-UNI,双向连接,或双向UNI-to-UNI。例如,这个属性取值为1时,表示GEM端口用于UNI-to-ANI;这个属性取值为2时,表示GEM端口用于ANI-to-UNI;这个属性取值为3时,表示GEM端口用于双向连接;这个属性取值为4时,表示GEM端口用于双向UNI-to-UNI。
对等设备标识,这个属性用于标识通信的另一个从网关的设备标识,如果这个属性取值为特殊值,则表示ONU和OLT之间进行通信。
其中,UNI-to-UNI是本申请实施例中新增加的通信类型,表示ONU和ONU之间的通信。
其中,对等设备标识是本申请实施例中新增加的属性。
在一些示例性实施例中,GEM Port Network CTP ME还包括:关联端口标识,这个属性用于描述与之通信的ONU所在的从网关的第一端口标识。
在一些示例性实施例中,GEM Port Network CTP ME还包括:UNI Node ID,这个属性表示通信的两端。
其中,UNI Node ID是本申请实施例中新增加的属性。
在一些示例性实施例中,判断出第一GEM帧中的端口标识为ONU之间进行通信时使用的端口标识包括:判断出存在端口标识为第一GEM帧中的端口标识,且对等设备标识为第一GEM帧中的第一标识的第三配置信息。
在一些示例性实施例中,在判断出不存在第三配置信息的情况下,判断出第一GEM帧中的端口标识为ONU和OLT之间进行通信时使用的端口标识。
在一些示例性实施例中,判断出第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识包括:获取第一GEM帧中的第二标识;判断出第二标识用于表征第一GEM帧为ONU之间通信的GEM帧。
在一些示例性实施例中,在为进行通信的两个ONU所在的从网关分配的第一端口标识的取值不同的情况下,发送第一GEM帧之前还包括:获取第二从网关的第一端口标识;将第一GEM帧中的端口标识更换为第二从网关的第一端口 标识得到更新的第一GEM帧;相应的,向所有从网关发送第一GEM帧包括:向所有从网关发送更新的第一GEM帧。
在一些示例性实施例中,在为进行通信的两个ONU所在的从网关分配的第一端口标识的取值不同的情况下,也可以直接发送第一GEM帧,及不将第一GEM帧中的端口标识更换为第二从网关的第一端口标识得到更新的第一GEM帧。
在一些示例性实施例中,获取第二从网关的第一端口标识包括:获取端口标识为第一GEM帧中的端口标识的第二配置信息;获取第二配置信息中的关联端口标识,关联端口标识即为第二从网关的第一端口标识。
在一些示例性实施例中,获取第二从网关的第一端口标识包括:获取端口标识为第一GEM帧中的端口标识,且对等设备标识为第一GEM帧中的第一标识的第三配置信息;获取第三配置信息中的关联端口标识,关联端口标识即为第二从网关的第一端口标识。
在一些示例性实施例中,接收第一从网关发送的第一GEM帧之前,该方法还包括:接收第一从网关发送的获取请求;其中,所述获取请求用于获取所述目标MAC地址对应的第一映射关系;所述第一映射关系为从网关的设备标识和MAC地址之间的映射关系;在预先存储的第一映射关系中查找目标MAC地址对应的第一映射关系;将目标MAC地址对应的第一映射关系发送给第一从网关。
在一些示例性实施例中,获取请求包括目标MAC地址。
在一些示例性实施例中,接收第一从网关发送的获取请求之前,该方法还包括:接收第一从网关或其他从网关共享的第二映射关系,根据第二映射关系存储或更新第一映射关系。
在一些示例性实施例中,第二映射关系是从网关在学习到与从网关连接的终端的MAC地址后存储的MAC地址和其他从网关的设备标识之间的映射关系。
在一些示例性实施例中,接收第一从网关发送的第一GEM帧之前,该方法还包括:接收第一从网关或其他从网关共享的第二映射关系,将第二映射关系发送给所有从网关或除共享第二映射关系的从网关之外的其他从网关。
在一些示例性实施例中,该方法还包括:接收第一从网关发送的第二GEM帧,判断出第二GEM帧中的端口标识用于上行广播,向FTTH OLT和所有从网关广播第二GEM帧。
图5为本申请另一个实施例提供的应用于第三从网关的通信方法的流程图。
第三方面,参照图5,本申请另一个实施例提供一种通信方法,应用于第三网关,该方法包括:
步骤500,接收主网关发送的第一GEM帧;其中,第一GEM帧包括:端口标识。
在一些示例性实施例中,如图3所示,GEM帧包括:GEM帧头和GEM帧净荷域。
在一些示例性实施例中,GEM帧头包括:PLI、密钥索引(Key Index)、端口标识(Port ID)、保留字段(Options)、LF和HEC。
在一些示例性实施例中,端口标识可以填写从网关的第一端口标识,也可以填写从网关的第二端口标识。其中,第一端口标识为ONU之间进行通信时使用的端口标识,第二端口标识为ONU和OLT之间进行通信时使用的端口标识。
在一些示例性实施例中,LF用于指示是否是最后一个片段。
在一些示例性实施例中,第一GEM帧还包括:第一标识。
在一些示例性实施例中,第一标识可以是第一从网关的UNI Node ID,也 可以是第二从网关的UNI Node ID;其中,第二从网关为与第二终端连接的从网关,第二终端为以太网帧中的目标MAC地址所属的终端。
在一些示例性实施例中,第一标识也可以是第二从网关的设备标识。
在一些示例性实施例中,UNI Node ID用于标识进行通信的两端。例如,用0和1表示进行通信的两个ONU,如ONU1用1表示,ONU2用0表示。
在一些示例性实施例中,第一GEM帧的GEM帧头中包括:端口标识和第一标识。
在一些示例性实施例中,GEM帧头的端口标识字段中包括端口标识,GEM帧头的保留字段中包括第一标识。
在一些示例性实施例中,在第一标识为第二从网关的设备标识的情况下,GEM帧头的保留字段的至少一个比特中包括第一标识。
在一些示例性实施例中,在第一标识为第一从网关的UNI Node ID,或第一标识为第二从网关的UNI Node ID的情况下,GEM帧头的保留字段的某一个比特中包括第一标识。例如,保留字段的最高比特中包括第一标识。
在一些示例性实施例中,第一GEM帧中还包括:第二标识,第二标识用于表征第一GEM帧为ONU之间通信的GEM帧,还是ONU和OLT之间通信的GEM帧。
在一些示例性实施例中,第一GEM帧的GEM帧头还包括:第二标识。
在一些示例性实施例中,GEM帧头的保留字段中还包括:第二标识。
在一些示例性实施例中,第二标识位于保留字段中除第一标识占用的比特之外的比特。
在一些示例性实施例中,在第一标识为第一从网关的UNI Node ID,或第一标识为第二从网关的UNI Node ID的情况下,第二标识位于保留字段中除最高比特之外的其他比特。
步骤501,根据第一GEM帧中的端口标识和第一GEM帧中的第一标识确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,根据第一GEM帧中的端口标识确定是否对第一GEM帧进行相应的处理包括:根据第一GEM帧中的端口标识是否是第三从网关的第一端口标识,确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,根据第一GEM帧中的端口标识是否是第三从网关的第一端口标识,确定是否对第一GEM帧进行相应的处理包括以下至少之一:
在第一GEM帧中的端口标识为第三从网关的第一端口标识的情况下,确定对第一GEM帧进行相应的处理;
在第一GEM帧中的端口标识不是第三从网关的第一端口标识的情况下,确定不对第一GEM帧进行相应的处理。
在一些示例性实施例中,根据第一GEM帧中的端口标识确定是否对第一GEM帧进行相应的处理包括:根据是否存在关联端口标识为第一GEM帧中的端口标识的第四配置信息,确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,根据是否存在关联端口标识为第一GEM帧中的端口标识的第四配置信息,确定是否对第一GEM帧进行相应的处理包括以下至少之一:
在存在第四配置信息的情况下,确定对第一GEM帧进行相应的处理;
在不存在第四配置信息的情况下,确定不对第一GEM帧进行相应的处理。
在一些示例性实施例中,根据第一GEM帧中的端口标识确定是否对第一GEM帧进行相应的处理包括:根据第一GEM帧中的端口标识和第一GEM帧中的第一标识确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,在第一标识为第一从网关的UNI Node ID,或第一标识为第二从网关的UNI Node ID的情况下,根据第一GEM帧中的端口标识和第一GEM帧中的第一标识确定是否对第一GEM帧进行相应的处理包括:根据第一GEM帧中的端口标识是否是第三从网关的第一端口标识,以及第一GEM帧中的第一标识是否是第三从网关的UNI Node ID,确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,在第一标识为第一从网关的UNI Node ID的情况下,根据第一GEM帧中的端口标识是否是第三从网关的第一端口标识,以及第一GEM帧中的第一标识是否是第三从网关的UNI Node ID,确定是否对第一GEM帧进行相应的处理包括以下至少之一:
在第一GEM帧中的端口标识为第三从网关的第一端口标识,且第一GEM帧中的第一标识不是第三从网关的UNI Node ID的情况下,确定对第一GEM帧进行相应的处理;
在第一GEM帧中的端口标识不是第三从网关的第一端口标识,或第一GEM帧中的第一标识为第三从网关的UNI Node ID的情况下,确定不对第一GEM帧进行相应的处理。
在一些示例性实施例中,在第一标识为第二从网关的UNI Node ID的情况下,根据第一GEM帧中的端口标识是否是第三从网关的第一端口标识,以及第一GEM帧中的第一标识是否是第三从网关的UNI Node ID,确定是否对第一GEM帧进行相应的处理包括以下至少之一:
在第一GEM帧中的端口标识为第三从网关的第一端口标识,且第一GEM帧中的第一标识为第三从网关的UNI Node ID的情况下,确定对第一GEM帧进行相应的处理;
在第一GEM帧中的端口标识不是第三从网关的第一端口标识,或第一GEM帧中的第一标识不是第三从网关的UNI Node ID的情况下,确定不对第一GEM帧进行相应的处理。
在一些示例性实施例中,在第一标识为第二从网关的设备标识的情况下,根据第一GEM帧中的端口标识和第一GEM帧中的第一标识确定是否对第一GEM帧进行相应的处理包括:根据第一GEM帧中的端口标识是否是第三从网关的第一端口标识,以及第一GEM帧中的第一标识是否是第三从网关的设备标识,确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,根据第一GEM帧中的端口标识是否是第三从网关的第一端口标识,以及第一GEM帧中的第一标识是否是第三从网关的设备标识,确定是否对第一GEM帧进行相应的处理包括以下至少之一:
在第一GEM帧中的端口标识为第三从网关的第一端口标识,且第一GEM帧中的第一标识为第三从网关的设备标识的情况下,确定对第一GEM帧进行相应的处理;
在第一GEM帧中的端口标识不是第三从网关的第一端口标识,或第一GEM帧中的第一标识不是第三从网关的设备标识的情况下,确定不对第一GEM帧进行相应的处理。
在一些示例性实施例中,在第一标识为第二从网关的设备标识的情况下,根据第一GEM帧中的端口标识和第一GEM帧中的第一标识确定是否对第一GEM帧进行相应的处理包括:根据是否存在关联端口标识为第一GEM帧中的端口标识的第四配置信息,以及第一GEM帧中的第一标识是否是第三从网关的设备标识,确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,根据是否存在关联端口标识为第一GEM帧中的端口标识的第四配置信息,以及第一GEM帧中的第一标识是否是第三从网关的设备标识,确定是否对第一GEM帧进行相应的处理包括以下至少之一:
在存在第四配置信息,且第一GEM帧中的第一标识为第三从网关的设备标识的情况下,确定对第一GEM帧进行相应的处理;
在不存在第四配置信息,或第一GEM帧中的第一标识不是第三从网关的设备标识的情况下,确定不对第一GEM帧进行相应的处理。
在一些示例性实施例中,对第一GEM帧进行相应的处理可以是接收到第一GEM帧后进行的任意处理。例如,解析第一GEM帧得到以太网帧。
在一些示例性实施例中,不对第一GEM帧进行相应的处理包括:丢弃第一GEM帧。
在一些示例性实施例中,接收主网关发送的第一GEM帧之前,该方法还包括:接收第一从网关发送的获取请求;其中,所述获取请求用于获取所述目标MAC地址对应的第一映射关系;所述第一映射关系为从网关的设备标识和MAC地址之间的映射关系;在预先存储的第一映射关系中查找目标MAC地址对应的第一映射关系;将目标MAC地址对应的第一映射关系发送给第一从网关。
在一些示例性实施例中,接收主网关发送的第一GEM帧之前,该方法还包括:接收第一从网关或其他从网关共享的第二映射关系,根据第二映射关系保存或更新第一映射关系。
在一些示例性实施例中,第二映射关系是从网关在学习到与从网关连接的终端的MAC地址后存储的MAC地址和其他从网关的设备标识之间的映射关系。
在一些示例性实施例中,该方法还包括:接收主网关广播的第二GEM帧。
为了更清楚的呈现本申请实施例的通信方法,下面列举几个具体示例说明本申请实施例的通信方法的具体实现过程,所列举的示例不用于限定本申请实施例的保护范围。
示例1
本示例描述在ONU交互开始时,从网关未学习到与从网关连接的终端的MAC地址,与发送终端连接的从网关无法获得接收终端的从网关的设备标识的情况下,实现ONU之间的通信的过程。
主网关通过GEM Port Network CTP ME向每一个从网关发送配置信息,配置信息中的端口标识为用于上行广播的端口标识,配置信息中的通信类型为UNI-to-ANI,即direction属性的取值为1。
从网关在接收到与从网关连接的终端发送的以太网帧时,将以太网帧封装到第二GEM帧中的净荷域,将从网关的用于上行广播的端口标识封装到第二GEM帧的GEM帧头的端口标识字段中,将第二GEM帧发送给主网关。
主网关接收第二GEM帧,判断出第二GEM帧中的端口标识用于上行广播,向FTTH OLT和所有从网关广播第二GEM帧。
从网关接收第二GEM帧。
示例2
本示例描述从网关学习与从网关连接的终端的MAC地址,并将MAC地址和从网关的设备标识之间的映射关系共享给主网关的过程。
假设主网关下连接有3个从网关,分别为从网关1,从网关2和从网关3;从网关1下连接有2个终端,分别为终端1和终端2;从网关2下连接有3个终端,分别为终端3,终端4和终端5;从网关3下连接有2个终端,分别为终端6和终端7。
终端1和终端2接入从网关1后,从网关1学习到终端1的MAC地址,为MAC地址1,从网关1学习到终端2的MAC地址,为MAC地址2。从网关1在本地保存MAC地址1和从网关1的设备标识之间的映射关系,以及MAC地址2和从网关1的设备标识之间的映射关系,并将保存的映射关系作为第二映射关系共享给主网关,主网关根据从网关1共享的第二映射关系保存或更新本地的第一映射关系。
终端3、终端4和终端5接入从网关2后,从网关2学习到终端3的MAC地址,为MAC地址3,从网关2学习到终端4的MAC地址,为MAC地址4,从网关2学习到终端5的MAC地址,为MAC地址5。从网关2在本地保存MAC地址3和从网关2的设备标识之间的映射关系,以及MAC地址4和从网关2的设备标识之间的映射关系,以及MAC地址5和从网关2的设备标识之间的映射关系,并将保存的映射关系作为第二映射关系共享给主网关,主网关根据从网关2共享的第二映射关系保存或更新本地的第一映射关系。
终端6和终端7接入从网关3后,从网关3学习到终端6的MAC地址,为MAC地址6,从网关3学习到终端7的MAC地址,为MAC地址7。从网关3在本地保存MAC地址6和从网关3的设备标识之间的映射关系,以及MAC地址7和从网关3的设备标识之间的映射关系,并将保存的映射关系作为第二映射关系共享给主网关,主网关根据从网关3共享的第二映射关系保存或更新本地的第一映射关系。
示例3
本示例描述为进行通信的FTTR ONU1和FTTR ONU2分配第一端口标识,并且为ONU1分配的第一端口标识的取值和为ONU2分配的第一端口标识的取值相同的情况下,ONU1和ONU2之间的通信过程。
本示例中,第一端口标识为ONU之间进行通信时使用的端口标识,ONU1的第一端口标识的取值与ONU1的第二端口标识的取值不同,ONU2的第一端口标识的取值与ONU2的第二端口标识的取值不同,第二端口标识为ONU和OLT之间进行通信时使用的端口标识。
本示例中,主网关通过GEM Port Network CTP ME向ONU1所在的从网关1发送配置信息,配置信息中的端口标识为分配的第一端口标识Port-ID1,通信类型为ONU-to-ONU或UNI-to-UNI,即direction属性的取值为4,UNI Node ID为0,对等设备标识为ONU2所在的从网关2的设备标识。
本示例中,主网关通过GEM Port Network CTP ME向ONU2所在的从网关2发送配置信息,配置信息中的端口标识为分配的第一端口标识Port-ID1,通信类型为ONU-to-ONU或UNI-to-UNI,即direction属性的取值为4,UNI Node ID为1,对等设备标识为ONU1所在的从网关1的设备标识。
ONU1向ONU2发起通信的过程包括:
ONU1所在的从网关1接收到终端1发送的以太网帧。
从网关1向主网关发送获取请求;其中,获取请求包括:以太网帧中的目标MAC地址。
主网关在预先存储的第一映射关系中查找目标MAC地址对应的第一映射关系,将目标MAC地址对应的第一映射关系发送给从网关1。
从网关1接收主网关发送的目标MAC地址对应的第一映射关系,获取目标MAC地址对应的第一映射关系中的设备标识作为从网关2的设备标识。
从网关1获取对等设备标识为从网关2的设备标识的配置信息中的端口标识Port-ID1,作为从网关1的第一端口标识,获取对等设备标识为从网关2的 设备标识的配置信息中的UNI Node ID。
从网关1将以太网帧封装到第一GEM帧的净荷域,将从网关1的第一端口标识封装到第一GEM帧的GEM帧头中的端口标识字段中,将UNI Node ID封装到第一GEM帧的GEM帧头中的Option字段中的最高位比特中,将封装好的第一GEM帧发送给主网关。
主网关接收第一GEM帧,获取端口标识为第一GEM帧中的端口标识的配置信息,判断出获得的配置信息中的对等设备标识不是特殊值,确定第一GEM帧中的端口标识为ONU之间进行通信时使用的端口标识,向所有从网关广播第一GEM帧。
从网关2接收到第一GEM帧,在第一GEM帧中的端口标识为从网关2的第一端口标识,且第一GEM帧中的UNI Node ID不是从网关2的UNI Node ID的情况下,从网关2接收第一GEM帧,解析第一GEM帧得到以太网帧,将以太网帧发送给终端2。
示例4
本示例描述为进行通信的FTTR ONU1和FTTR ONU2分配第一端口标识,并且为ONU1分配的第一端口标识的取值和为ONU2分配的第一端口标识的取值不相同的情况下,ONU1和ONU2之间的通信过程。
本示例中,第一端口标识为ONU之间进行通信时使用的端口标识,ONU1的第一端口标识的取值与ONU1的第二端口标识的取值不同,ONU2的第一端口标识的取值与ONU2的第二端口标识的取值不同,第二端口标识为ONU和OLT之间进行通信时使用的端口标识。
本示例中,主网关通过GEM Port Network CTP ME向ONU1所在的从网关1发送配置信息,配置信息中的端口标识为分配的第一端口标识Port-ID1,通信类型为ONU-to-ONU或UNI-to-UNI,即direction属性的取值为4,对等设备标识为ONU2所在的从网关2的设备标识,关联端口标识为ONU2所在的从网关2分配的第一端口标识Port-ID2。
本示例中,主网关通过GEM Port Network CTP ME向ONU2所在的从网关2发送配置信息,配置信息中的端口标识为分配的第一端口标识Port-ID2,通信类型为ONU-to-ONU或UNI-to-UNI,即direction属性的取值为4,对等设备标识为ONU1所在的从网关1的设备标识,关联端口标识为ONU1所在的从网关1分配的第一端口标识Port-ID1。
ONU1向ONU2发起通信的过程包括:
ONU1所在的从网关1接收到终端1发送的以太网帧。
从网关1向主网关发送获取请求;其中,获取请求包括:以太网帧中的目标MAC地址。
主网关在预先存储的第一映射关系中查找目标MAC地址对应的第一映射关系,将目标MAC地址对应的第一映射关系发送给从网关1。
从网关1接收主网关发送的目标MAC地址对应的第一映射关系,获取目标MAC地址对应的第一映射关系中的设备标识作为从网关2的设备标识。
从网关1获取对等设备标识为从网关2的设备标识的配置信息中的端口标识Port-ID1,作为从网关1的第一端口标识。
从网关1将以太网帧封装到第一GEM帧的净荷域,将从网关1的第一端口标识封装到第一GEM帧的GEM帧头中的端口标识字段中,将从网关2的设备标识作为第一标识封装到第一GEM帧的GEM帧头中的Option字段中,将封装好的第一GEM帧发送给主网关。
主网关接收第一GEM帧,判断出存在端口标识为第一GEM帧中的端口标识,且对等设备标识为从网关2的设备标识的配置信息,确定第一GEM帧中的端口标识为ONU之间进行通信时使用的端口标识。
主网关获取端口标识为第一GEM帧中的端口标识,且对等设备标识为从网关2的设备标识的配置信息中的关联端口标识作为从网关2的第一端口标识Port-ID2,将第一GEM帧中的端口标识更换为从网关2的第一端口标识Port-ID2得到更新的第一GEM帧,向所有从网关广播更新的第一GEM帧。
从网关2接收到更新的第一GEM帧,在更新的第一GEM帧中的端口标识为从网关2的第一端口标识,且第一GEM帧中的第一标识为从网关2的设备标识的情况下,从网关2接收更新的第一GEM帧,解析更新的第一GEM帧得到以太网帧,将以太网帧发送给终端2。
示例5
本示例描述为进行通信的FTTR ONU1和FTTR ONU2分配第一端口标识,并且为ONU1分配的第一端口标识的取值和为ONU2分配的第一端口标识的取值不相同的情况下,ONU1和ONU2之间的通信过程。
本示例中,第一端口标识为ONU之间进行通信时使用的端口标识,ONU1的第一端口标识的取值与ONU1的第二端口标识的取值不同,ONU2的第一端口标识的取值与ONU2的第二端口标识的取值不同,第二端口标识为ONU和OLT之间进行通信时使用的端口标识。
本示例中,主网关通过GEM Port Network CTP ME向ONU1所在的从网关1发送配置信息,配置信息中的端口标识为分配的第一端口标识Port-ID1,通信类型为ONU-to-ONU或UNI-to-UNI,即direction属性的取值为4,对等设备标识为ONU2所在的从网关2的设备标识,关联端口标识为ONU2所在的从网关2分配的第一端口标识Port-ID2。
本示例中,主网关通过GEM Port Network CTP ME向ONU2所在的从网关2发送配置信息,配置信息中的端口标识为分配的第一端口标识Port-ID2,通信类型为ONU-to-ONU或UNI-to-UNI,即direction属性的取值为4,对等设备标识为ONU1所在的从网关1的设备标识,关联端口标识为ONU1所在的从网关1分配的第一端口标识Port-ID1。
ONU1向ONU2发起通信的过程包括:
ONU1所在的从网关1接收到终端1发送的以太网帧。
从网关1向主网关发送获取请求;其中,获取请求包括:以太网帧中的目标MAC地址。
主网关在预先存储的第一映射关系中查找目标MAC地址对应的第一映射关系,将目标MAC地址对应的第一映射关系发送给从网关1。
从网关1接收主网关发送的目标MAC地址对应的第一映射关系,获取目标MAC地址对应的第一映射关系中的设备标识作为从网关2的设备标识。
从网关1获取对等设备标识为从网关2的设备标识的配置信息中的端口标识Port-ID1,作为从网关1的第一端口标识。
从网关1将以太网帧封装到第一GEM帧的净荷域,将从网关1的第一端口标识封装到第一GEM帧的GEM帧头中的端口标识字段中,将从网关2的设备标识作为第一标识封装到第一GEM帧的GEM帧头中的Option字段中,将封装好的第一GEM帧发送给主网关。
主网关接收第一GEM帧,判断出存在端口标识为第一GEM帧中的端口标识,且对等设备标识为从网关2的设备标识的配置信息,确定第一GEM帧中的端口 标识为ONU之间进行通信时使用的端口标识,向所有从网关广播第一GEM帧。
从网关2接收到第一GEM帧,在第一GEM帧中的端口标识为从网关2的第一端口标识,且第一GEM帧中的第一标识为从网关2的设备标识的情况下,从网关2接收第一GEM帧,解析第一GEM帧得到以太网帧,将以太网帧发送给终端2。
示例6
本示例描述为进行通信的FTTR ONU1和FTTR ONU2分配第一端口标识,并且为ONU1分配的第一端口标识的取值和为ONU2分配的第一端口标识的取值不相同的情况下,ONU1和ONU2之间的通信过程。
本示例中,第一端口标识为ONU之间进行通信时使用的端口标识,ONU1的第一端口标识的取值与ONU1的第二端口标识的取值相同,ONU2的第一端口标识的取值与ONU2的第二端口标识的取值相同,第二端口标识为ONU和OLT之间进行通信时使用的端口标识。
本示例中,主网关通过GEM Port Network CTP ME向ONU1所在的从网关1发送配置信息,配置信息中的端口标识为分配的第一端口标识Port-ID1,通信类型为ONU-to-ONU或UNI-to-UNI,即direction属性的取值为4,对等设备标识为ONU2所在的从网关2的设备标识,关联端口标识为ONU2所在的从网关2分配的第一端口标识Port-ID2。
本示例中,主网关通过GEM Port Network CTP ME向ONU2所在的从网关2发送配置信息,配置信息中的端口标识为分配的第一端口标识Port-ID2,通信类型为ONU-to-ONU或UNI-to-UNI,即direction属性的取值为4,对等设备标识为ONU1所在的从网关1的设备标识,关联端口标识为ONU1所在的从网关1分配的第一端口标识Port-ID1。
ONU1向ONU2发起通信的过程包括:
ONU1所在的从网关1接收到终端1发送的以太网帧。
从网关1向主网关发送获取请求;其中,获取请求包括:以太网帧中的目标MAC地址。
主网关在预先存储的第一映射关系中查找目标MAC地址对应的第一映射关系,将目标MAC地址对应的第一映射关系发送给从网关1。
从网关1接收主网关发送的目标MAC地址对应的第一映射关系,获取目标MAC地址对应的第一映射关系中的设备标识作为从网关2的设备标识。
从网关1获取对等设备标识为从网关2的设备标识的配置信息中的端口标识Port-ID1,作为从网关1的第一端口标识。
从网关1将以太网帧封装到第一GEM帧的净荷域,将从网关1的第一端口标识封装到第一GEM帧的GEM帧头中的端口标识字段中,将从网关2的设备标识作为第一标识封装到第一GEM帧的GEM帧头中的Option字段中,将第二标识封装到第一GEM帧的GEM帧头中的Option字段中的次高位比特中,将封装好的第一GEM帧发送给主网关;其中,第二标识取值为1,用于表征第一GEM帧为ONU之间通信的GEM帧。
主网关接收第一GEM帧,获取第一GEM帧中的第二标识;判断出第二标识用于表征第一GEM帧为ONU之间通信的GEM帧,确定第一GEM帧中的端口标识为ONU之间进行通信时使用的端口标识。
主网关获取端口标识为第一GEM帧中的端口标识,且对等设备标识为从网关2的设备标识的配置信息中的关联端口标识作为从网关2的第一端口标识Port-ID2,将第一GEM帧中的端口标识更换为从网关2的第一端口标识 Port-ID2得到更新的第一GEM帧,向所有从网关广播更新的第一GEM帧。
从网关2接收到更新的第一GEM帧,在更新的第一GEM帧中的端口标识为从网关2的第一端口标识,且第一GEM帧中的第一标识为从网关2的设备标识的情况下,从网关2接收更新的第一GEM帧,解析更新的第一GEM帧得到以太网帧,将以太网帧发送给终端2。
第四方面,本申请另一个实施例提供一种电子设备,包括:至少一个处理器;存储器,存储器上存储有至少一个程序,当至少一个程序被至少一个处理器执行时,使得所述至少一个处理器实现上述任意一种通信方法。
其中,处理器为具有数据处理能力的器件,其包括但不限于中央处理器(CPU)等;存储器为具有数据存储能力的器件,其包括但不限于随机存取存储器(RAM,更具体如SDRAM、DDR等)、只读存储器(ROM)、带电可擦可编程只读存储器(EEPROM)、闪存(FLASH)。
在一些实施例中,处理器、存储器通过总线相互连接,进而与计算设备的其它组件连接。
第五方面,本申请另一个实施例提供一种计算机可读介质,计算机可读介质上存储有计算机程序,计算机程序被处理器执行时,使得所述处理器实现上述任意一种通信方法。
图6为本申请另一个实施例提供的通信系统的组成框图。
第六方面,参照图6,本申请另一个实施例提供一种通信系统,包括:第一从网关601,用于接收第一终端发送的以太网帧;将第一从网关的第一端口标识,以及以太网帧封装成第一GEM帧,将第一GEM帧发送给主网关;其中,第一端口标识为光网络单元之间进行通信时使用的端口标识;主网关602,用于接收第一从网关发送的第一GEM帧;其中,第一GEM帧包括:端口标识和第一标识;在判断出第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识的情况下,向所有从网关发送第一GEM帧;第三从网关603,用于接收主网关发送的第一GEM帧;其中,第一GEM帧包括:端口标识和第一标识;根据第一GEM帧中的端口标识和第一GEM帧中的第一标识确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,将第一从网关的第一端口标识,以及以太网帧封装成第一吉比特无源光网络封装模式GEM帧包括:将第一从网关第一端口标识和第一标识,以及以太网帧封装成第一GEM帧。
在一些示例性实施例中,第一标识为第一从网关的用户网络接口节点标识;或者,第一标识为第二从网关的用户网络接口节点标识;其中,第二从网关为与第二终端连接的从网关,第二终端为以太网帧中的目标媒体访问控制地址所属的终端。
在一些示例性实施例中,第一从网关601还用于:获取所述第一从网关的第一端口标识和第一标识。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现获取所述第一从网关的第一端口标识和第一标识:根据所述以太网帧中的目标媒体访问控制地址获取第二从网关的设备标识;根据第二从网关的设备标识获取第一从网关的第一端口标识和第一标识。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现根据所述以太网帧中的目标媒体访问控制地址获取第二从网关的设备标识:在预先存储的从网关的设备标识和媒体访问控制地址之间的第一映射关系中,查找所述目标媒体访问控制地址对应的设备标识,查找到的设备标识即为所述第二从 网关的设备标识。
在一些示例性实施例中,第一从网关601还用于:获取其他从网关共享的第二映射关系,根据所述第二映射关系存储或更新所述第一映射关系。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现根据所述以太网帧中的目标媒体访问控制地址获取第二从网关的设备标识:向所述主网关发送获取请求;其中,所述获取请求用于获取所述目标媒体访问控制地址对应的第一映射关系;所述第一映射关系为从网关的设备标识和媒体访问控制地址之间的映射关系;接收所述主网关发送的所述目标媒体访问控制地址对应的第一映射关系,获取所述目标媒体访问控制地址对应的第一映射关系中的设备标识。
主网关602还用于:接收第一从网关发送的获取请求,在预先存储的第一映射关系中查找目标媒体访问控制地址对应的第一映射关系,将目标媒体访问控制地址对应的第一映射关系发送给第一从网关。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现根据所述以太网帧中的目标媒体访问控制地址获取第二从网关的设备标识:向其他网关发送获取请求;其中,所述获取请求用于获取所述目标媒体访问控制地址对应的第一映射关系;所述第一映射关系为从网关的设备标识和媒体访问控制地址之间的映射关系;接收所述其他网关发送的所述目标媒体访问控制地址对应的第一映射关系,获取所述目标媒体访问控制地址对应的第一映射关系中的设备标识。
第三从网关603还用于:接收第一从网关发送的获取请求,在预先存储的第一映射关系中查找目标媒体访问控制地址对应的第一映射关系,将目标媒体访问控制地址对应的第一映射关系发送给第一从网关。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现根据所述第二从网关的设备标识获取所述第一从网关的第一端口标识和第一标识:获取对等设备标识为所述第二从网关的设备标识的第一配置信息;获取所述第一配置信息中的端口标识作为所述第一从网关的第一端口标识;在所述第一标识为所述第一从网关的用户网络接口节点标识的情况下,获取所述第一配置信息中的用户网络接口节点标识;在所述第一标识为所述第二从网关的用户网络接口节点标识的情况下,根据所述第一配置信息中的用户网络接口节点标识获取所述第一标识。
在一些示例性实施例中,第一标识为第二从网关的设备标识;其中,第二从网关为与第二终端连接的从网关,第二终端为所述以太网帧中的目标媒体访问控制地址所属的终端。
在一些示例性实施例中,第一从网关601还用于:根据所述目标媒体访问控制地址获取所述第二从网关的设备标识;根据所述第二从网关的设备标识获取所述第一从网关的第一端口标识。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现将第一从网关的第一端口标识和第一标识,以及所述以太网帧封装成第一吉比特无源光网络封装模式GEM帧:将所述以太网帧封装到所述第一GEM帧中的净荷域,将所述第一从网关的第一端口标识和第一标识封装到所述第一GEM帧中的GEM帧头中。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现将所述第一从网关的第一端口标识和第一标识封装到所述第一GEM帧中的GEM帧头中:将所述第一从网关的第一端口标识封装到所述GEM帧头中的端口标识字段 中,将第一标识封装到所述GEM帧头中的保留字段中。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现将第一标识封装到所述GEM帧头中的保留字段中:将第一标识封装到所述保留字段中的任意一个比特中。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现将第一标识封装到所述保留字段中的任意一个比特中:将第一标识封装到所述保留字段中的最高位比特中。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现将所述第一从网关的第一端口标识和第一标识封装到所述第一GEM帧中的GEM帧头中:将所述第一从网关的第一端口标识、第一标识和第二标识封装到所述第一GEM帧中的GEM帧头中;其中,所述第二标识用于表征所述第一GEM帧为光网络单元之间通信的GEM帧,还是光网络单元和光线路终端之间通信的GEM帧。
在一些示例性实施例中,第一从网关601具体用于采用以下方式实现将所述第一从网关的第一端口标识、第一标识和第二标识封装到所述第一GEM帧中的GEM帧头中:将所述第一从网关的第一端口标识封装到所述GEM帧头中的端口标识字段中,将第一标识和第二标识封装到所述GEM帧头中的保留字段中。
在一些示例性实施例中,主网关602具体用于采用以下方式实现判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识:获取端口标识为所述第一GEM帧中的端口标识的第二配置信息;判断出所述第二配置信息中的对等设备标识不是特殊值。
在一些示例性实施例中,主网关602具体用于采用以下方式实现判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识:判断出存在端口标识为所述第一GEM帧中的端口标识,且对等设备标识为所述第一GEM帧中的第一标识的第三配置信息。
在一些示例性实施例中,所述第一GEM帧中还包括:第二标识,第二标识用于表征所述第一GEM帧为光网络单元之间通信的GEM帧,还是光网络单元和光线路终端之间通信的GEM帧;主网关602具体用于采用以下方式实现判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识:获取第二标识;判断出所述预设标识用于表征所述第一GEM帧为光网络单元之间通信的GEM帧。
在一些示例性实施例中,主网关602还用于:获取第二从网关的第一端口标识;将所述第一GEM帧中的端口标识更换为所述第二从网关的第一端口标识得到更新的第一GEM帧;发送所述更新的第一GEM帧。
在一些示例性实施例中,主网关602具体用于采用以下方式实现获取第二从网关的第一端口标识:获取端口标识为所述第一GEM帧中的端口标识第二配置信息;获取所述第二配置信息中的关联端口标识,所述关联端口标识即为所述第二从网关的第一端口标识。
在一些示例性实施例中,第三从网关603具体用于采用以下方式实现根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理:根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,确定是否对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下至少之一方式实现根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,确定是否对所述第一GEM帧进行相应的处理:
在所述第一GEM帧中的端口标识为所述第三从网关的第一端口标识的情 况下,确定对所述第一GEM帧进行相应的处理;
在所述第一GEM帧中的端口标识不是所述第三从网关的第一端口标识的情况下,确定不对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下方式实现根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理:根据是否存在关联端口标识为所述第一GEM帧中的端口标识的第四配置信息,确定是否对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下至少之一方式实现根据是否存在关联端口标识为所述第一GEM帧中的端口标识的第四配置信息,确定是否对所述第一GEM帧进行相应的处理:
在存在所述第四配置信息的情况下,确定对所述第一GEM帧进行相应的处理;
在不存在所述第四配置信息的情况下,确定不对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下方式实现根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理:根据所述第一GEM帧中的端口标识和所述第一GEM帧中的第一标识确定是否对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下方式实现根据所述第一GEM帧中的端口标识和所述第一GEM帧中的第一标识确定是否对所述第一GEM帧进行相应的处理:根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的用户网络接口节点标识,确定是否对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下至少之一方式实现根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的用户网络接口节点标识,确定是否对所述第一GEM帧进行相应的处理:
在所述第一GEM帧中的端口标识为所述第三从网关的第一端口标识,且所述第一GEM帧中的第一标识不是所述第三从网关的用户网络接口节点标识的情况下,确定对所述第一GEM帧进行相应的处理;
在所述第一GEM帧中的端口标识不是所述第三从网关的第一端口标识,或所述第一GEM帧中的第一标识为所述第三从网关的用户网络接口节点标识的情况下,确定不对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下方式实现根据所述第一GEM帧中的端口标识和所述第一GEM帧中的第一标识确定是否对所述第一GEM帧进行相应的处理:根据第一GEM帧中的端口标识是否是第三从网关的第一端口标识,以及第一GEM帧中的第一标识是否是第三从网关的设备标识确定是否对第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下至少之一方式实现根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的设备标识确定是否对所述第一GEM帧进行相应的处理:
在所述第一GEM帧中的端口标识为所述第三从网关的第一端口标识,且所述第一GEM帧中的第一标识为所述第三从网关的设备标识的情况下,确定对所述第一GEM帧进行相应的处理;
在所述第一GEM帧中的端口标识不是所述第三从网关的第一端口标识,或所述第一GEM帧中的第一标识不是所述第三从网关的设备标识的情况下,确定对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下至少之一方式实现根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的设备标识确定是否对所述第一GEM帧进行相应的处理:
在所述第一GEM帧中的端口标识为所述第三从网关的第一端口标识,且所述第一GEM帧中的第一标识为所述第三从网关的用户网络接口节点标识的情况下,确定对所述第一GEM帧进行相应的处理;
在所述第一GEM帧中的端口标识不是所述第三从网关的第一端口标识,或所述第一GEM帧中的第一标识不是所述第三从网关的用户网络接口节点标识的情况下,确定不对所述第一GEM帧进行相应的处理。
在一些示例性实施例中,第三从网关603具体用于采用以下方式实现根据所述第一GEM帧中的端口标识和所述第一GEM帧中的第一标识确定是否对所述第一GEM帧进行相应的处理:根据是否存在关联端口标识为第一GEM帧中的端口标识的第四配置信息,以及所述第一GEM帧中的第一标识是否是所述第三从网关的设备标识,确定是否对所述第一GEM帧进行相应的处理。
上述通信系统的具体实现过程与前述实施例的通信方法的具体实现过程相同,这里不再赘述。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其它数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其它存储器技术、CD-ROM、数字多功能盘(DVD)或其它光盘存储、磁盒、磁带、磁盘存储或其它磁存储器、或者可以用于存储期望的信息并且可以被计算机访问的任何其它的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其它传输机制之类的调制数据信号中的其它数据,并且可包括任何信息递送介质。
本文已经公开了示例实施例,并且虽然采用了具体术语,但它们仅用于并仅应当被解释为一般说明性含义,并且不用于限制的目的。在一些实例中,对本领域技术人员显而易见的是,除非另外明确指出,否则可单独使用与特定实施例相结合描述的特征、特性和/或元素,或可与其它实施例相结合描述的特征、特性和/或元件组合使用。因此,本领域技术人员将理解,在不脱离由所附的权利要求阐明的本申请的范围的情况下,可进行各种形式和细节上的改变。

Claims (42)

  1. 一种通信方法,应用于第一从网关,该方法包括:
    接收第一终端发送的以太网帧;
    将第一从网关的第一端口标识,以及所述以太网帧封装成第一吉比特无源光网络封装模式GEM帧,将第一GEM帧发送给主网关;其中,所述第一端口标识为光网络单元之间进行通信时使用的端口标识。
  2. 根据权利要求1所述的通信方法,其中,所述将第一从网关的第一端口标识,以及所述以太网帧封装成第一吉比特无源光网络封装模式GEM帧包括:
    将所述第一从网关第一端口标识和第一标识,以及所述以太网帧封装成第一GEM帧。
  3. 根据权利要求2所述的通信方法,其中,所述第一标识为所述第一从网关的用户网络接口节点标识;
    或者,所述第一标识为第二从网关的用户网络接口节点标识;其中,所述第二从网关为与第二终端连接的从网关,所述第二终端为所述以太网帧中的目标媒体访问控制地址所属的终端。
  4. 根据权利要求3所述的通信方法,所述接收第一终端发送的以太网帧后,在所述将第一从网关的第一端口标识和第一标识,以及所述以太网帧封装成第一GEM帧之前,该方法还包括:
    获取所述第一从网关的第一端口标识和第一标识。
  5. 根据权利要求4所述的通信方法,其中,所述获取所述第一从网关的第一端口标识和第一标识包括:
    根据所述目标媒体访问控制地址获取第二从网关的设备标识;其中,所述第二从网关为与所述第二终端连接的从网关;
    根据所述第二从网关的设备标识获取所述第一从网关的第一端口标识和第一标识。
  6. 根据权利要求5所述的通信方法,其中,所述根据所述目标媒体访问控制地址获取第二从网关的设备标识包括:
    在预先存储的从网关的设备标识和媒体访问控制地址之间的第一映射关系中,查找所述目标媒体访问控制地址对应的设备标识,查找到的设备标识即为所述第二从网关的设备标识。
  7. 根据权利要求6所述的通信方法,所述查找所述目标媒体访问控制地址对应的设备标识之前,该方法还包括:获取其他从网关共享的第二映射关系,根据所述第二映射关系存储或更新所述第一映射关系。
  8. 根据权利要求5所述的通信方法,其中,所述根据所述以太网帧中的目标媒体访问控制地址获取第二从网关的设备标识包括:
    向所述主网关发送获取请求;其中,所述获取请求用于获取所述目标媒体访问控制地址对应的第一映射关系;所述第一映射关系为从网关的设备标识和媒体访问控制地址之间的映射关系;
    接收所述主网关发送的所述目标媒体访问控制地址对应的第一映射关系,获取所述目标媒体访问控制地址对应的第一映射关系中的设备标识。
  9. 根据权利要求5所述的通信方法,其中,所述根据所述以太网帧中的目标媒体访问控制地址获取第二从网关的设备标识包括:
    向其他网关发送获取请求;其中,所述获取请求用于获取所述目标媒体访 问控制地址对应的第一映射关系;所述第一映射关系为从网关的设备标识和媒体访问控制地址之间的映射关系;
    接收所述其他网关发送的所述目标媒体访问控制地址对应的第一映射关系,获取所述目标媒体访问控制地址对应的第一映射关系中的设备标识。
  10. 根据权利要求5所述的通信方法,其中,所述根据所述第二从网关的设备标识获取所述第一从网关的第一端口标识和第一标识包括:
    获取对等设备标识为所述第二从网关的设备标识的第一配置信息;
    获取所述第一配置信息中的端口标识作为所述第一从网关的第一端口标识;
    在所述第一标识为所述第一从网关的用户网络接口节点标识的情况下,获取所述第一配置信息中的用户网络接口节点标识;在所述第一标识为所述第二从网关的用户网络接口节点标识的情况下,根据所述第一配置信息中的用户网络接口节点标识获取所述第一标识。
  11. 根据权利要求2所述的通信方法,其中,所述第一标识为第二从网关的设备标识;其中,所述第二从网关为与第二终端连接的从网关,所述第二终端为所述以太网帧中的目标媒体访问控制地址所属的终端。
  12. 根据权利要求11所述的通信方法,所述接收第一终端发送的以太网帧后,在所述将第一从网关的第一端口标识和第一标识,以及所述以太网帧封装成第一GEM帧之前,该方法还包括:
    根据所述目标媒体访问控制地址获取所述第二从网关的设备标识;
    根据所述第二从网关的设备标识获取所述第一从网关的第一端口标识。
  13. 根据权利要求2所述的通信方法,其中,所述将第一从网关的第一端口标识和第一标识,以及所述以太网帧封装成第一GEM帧包括:
    将所述以太网帧封装到所述第一GEM帧中的净荷域,将所述第一从网关的第一端口标识和所述第一标识封装到所述第一GEM帧中的GEM帧头中。
  14. 根据权利要求13所述的通信方法,其中,所述将所述第一从网关的第一端口标识和所述第一标识封装到所述第一GEM帧中的GEM帧头中包括:
    将所述第一从网关的第一端口标识封装到所述GEM帧头中的端口标识字段中,将所述第一标识封装到所述GEM帧头中的保留字段中。
  15. 根据权利要求14所述的通信方法,其中,所述将所述第一标识封装到所述GEM帧头中的保留字段中包括:
    将所述第一标识封装到所述保留字段中的任意一个比特中。
  16. 根据权利要求14所述的通信方法,其中,所述将所述第一标识封装到所述保留字段中的任意一个比特中包括:
    将所述第一标识封装到所述保留字段中的最高位比特中。
  17. 根据权利要求13所述的通信方法,其中,所述将所述第一从网关的第一端口标识和所述第一标识封装到所述第一GEM帧中的GEM帧头中包括:
    将所述第一从网关的第一端口标识、所述第一标识和第二标识封装到所述第一GEM帧中的GEM帧头中;其中,所述第二标识用于表征所述第一GEM帧为光网络单元之间通信的GEM帧,还是光网络单元和光线路终端之间通信的GEM帧。
  18. 根据权利要求17所述的通信方法,其中,所述将所述第一从网关的第一端口标识、所述第一标识和第二标识封装到所述第一GEM帧中的GEM帧头中包括:
    将所述第一从网关的第一端口标识封装到所述GEM帧头中的端口标识字 段中,将所述第一标识和所述第二标识封装到所述GEM帧头中的保留字段中。
  19. 一种通信方法,应用于主网关,该方法包括:
    接收第一从网关发送的第一吉比特无源光网络封装模式GEM帧;其中,第一GEM帧包括:端口标识;
    在判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识的情况下,向所有从网关发送所述第一GEM帧。
  20. 根据权利要求19所述的通信方法,其中,所述判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识包括:
    获取端口标识为所述第一GEM帧中的端口标识的第二配置信息;
    判断出所述第二配置信息中的对等设备标识不是特殊值。
  21. 根据权利要求19所述的通信方法,其中,所述第一GEM帧还包括:第一标识;
    所述第一标识为所述第一从网关的用户网络接口节点标识;
    或者,所述第一标识为第二从网关的用户网络接口节点标识;其中,所述第二从网关为与第二终端连接的从网关,所述第二终端为所述第一GEM帧中的以太网帧中的目标媒体访问控制地址所属的终端;
    或者,所述第一标识为所述第二从网关的设备标识。
  22. 根据权利要求21所述的通信方法,其中,所述判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识包括:
    判断出存在端口标识为所述第一GEM帧中的端口标识,且对等设备标识为所述第一GEM帧中的第一标识的第三配置信息。
  23. 根据权利要求19所述的通信方法,其中,所述第一GEM帧中还包括:第二标识,所述第二标识用于表征所述第一GEM帧为光网络单元之间通信的GEM帧,还是光网络单元和光线路终端之间通信的GEM帧;
    所述判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识包括:
    获取所述第二标识;
    判断出所述第二标识用于表征所述第一GEM帧为光网络单元之间通信的GEM帧。
  24. 根据权利要求19所述的通信方法,所述发送所述第一GEM帧之前还包括:
    获取第二从网关的第一端口标识;
    将所述第一GEM帧中的端口标识更换为所述第二从网关的第一端口标识得到更新的第一GEM帧;
    所述向所有从网关发送所述第一GEM帧包括:向所有从网关发送所述更新的第一GEM帧。
  25. 根据权利要求24所述的通信方法,其中,所述获取第二从网关的第一端口标识包括:
    获取端口标识为所述第一GEM帧中的端口标识的第二配置信息;
    获取所述第二配置信息中的关联端口标识,所述关联端口标识即为所述第二从网关的第一端口标识。
  26. 一种通信方法,应用于第三从网关,该方法包括:
    接收主网关发送的第一吉比特无源光网络封装模式GEM帧;其中,第一GEM帧包括:端口标识;
    根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的 处理。
  27. 根据权利要求26所述的通信方法,其中,所述根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理包括:
    根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识确定是否对所述第一GEM帧进行相应的处理。
  28. 根据权利要求27所述的通信方法,其中,所述根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识确定是否对所述第一GEM帧进行相应的处理包括以下至少之一:
    在所述第一GEM帧中的端口标识为所述第三从网关的第一端口标识的情况下,确定对所述第一GEM帧进行相应的处理;
    在所述第一GEM帧中的端口标识不是所述第三从网关的第一端口标识的情况下,确定不对所述第一GEM帧进行相应的处理。
  29. 根据权利要求26所述的通信方法,其中,所述根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理包括:
    根据是否存在关联端口标识为所述第一GEM帧中的端口标识的第四配置信息,确定是否对所述第一GEM帧进行相应的处理。
  30. 根据权利要求29所述的通信方法,其中,所述根据是否存在关联端口标识为所述第一GEM帧中的端口标识的第四配置信息,确定是否对所述第一GEM帧进行相应的处理包括以下至少之一:
    在存在所述第四配置信息的情况下,确定对所述第一GEM帧进行相应的处理;
    在不存在所述第四配置信息的情况下,确定不对所述第一GEM帧进行相应的处理。
  31. 根据权利要求26所述的通信方法,其中,所述第一GEM帧还包括第一标识;所述根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理包括:
    根据所述第一GEM帧中的端口标识和所述第一GEM帧中的第一标识确定是否对所述第一GEM帧进行相应的处理。
  32. 根据权利要求31所述的通信方法,其中,所述第一标识为第一从网关的用户网络接口节点标识;
    或者,所述第一标识为第二从网关的用户网络接口节点标识;其中,所述第二从网关为与第二终端连接的从网关,所述第二终端为所述第一GEM帧中的以太网帧中的目标媒体访问控制地址所属的终端。
  33. 根据权利要求32所述的通信方法,其中,所述根据所述第一GEM帧中的端口标识和所述第一GEM帧中的第一标识确定是否对所述第一GEM帧进行相应的处理包括:
    根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的用户网络接口节点标识,确定是否对所述第一GEM帧进行相应的处理。
  34. 根据权利要求33所述的通信方法,其中,所述第一标识为所述第一从网关的用户网络接口节点标识;
    所述根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的用户网络接口节点标识,确定是否对所述第一GEM帧进行相应的处理包括以下至少之一:
    在所述第一GEM帧中的端口标识为所述第三从网关的第一端口标识,且所 述第一GEM帧中的第一标识不是所述第三从网关的用户网络接口节点标识的情况下,确定对所述第一GEM帧进行相应的处理;
    在所述第一GEM帧中的端口标识不是所述第三从网关的第一端口标识,或所述第一GEM帧中的第一标识为所述第三从网关的用户网络接口节点标识的情况下,确定不对所述第一GEM帧进行相应的处理。
  35. 根据权利要求32所述的通信方法,其中,所述第一标识为所述第二从网关的用户网络接口节点标识;
    所述根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的用户网络接口节点标识,确定是否对所述第一GEM帧进行相应的处理包括以下至少之一:
    在所述第一GEM帧中的端口标识为所述第三从网关的第一端口标识,且所述第一GEM帧中的第一标识为所述第三从网关的用户网络接口节点标识的情况下,确定对所述第一GEM帧进行相应的处理;
    在所述第一GEM帧中的端口标识不是所述第三从网关的第一端口标识,或所述第一GEM帧中的第一标识不是所述第三从网关的用户网络接口节点标识的情况下,确定不对所述第一GEM帧进行相应的处理。
  36. 根据权利要求31所述的通信方法,其中,所述第一标识为第二从网关的设备标识;其中,所述第二从网关为与第二终端连接的从网关,所述第二终端为所述第一GEM帧中的以太网帧中的目标媒体访问控制地址所属的终端。
  37. 根据权利要求36所述的通信方法,其中,所述根据所述第一GEM帧中的端口标识和所述第一GEM帧中的第一标识确定是否对所述第一GEM帧进行相应的处理包括:
    根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的设备标识,确定是否对所述第一GEM帧进行相应的处理。
  38. 根据权利要求37所述的通信方法,其中,所述根据所述第一GEM帧中的端口标识是否是所述第三从网关的第一端口标识,以及所述第一GEM帧中的第一标识是否是所述第三从网关的设备标识,确定是否对所述第一GEM帧进行相应的处理包括以下至少之一:
    在所述第一GEM帧中的端口标识为所述第三从网关的第一端口标识,且所述第一GEM帧中的第一标识为所述第三从网关的设备标识的情况下,确定对所述第一GEM帧进行相应的处理;
    在所述第一GEM帧中的端口标识不是所述第三从网关的第一端口标识,或所述第一GEM帧中的第一标识不是所述第三从网关的设备标识的情况下,确定不对所述第一GEM帧进行相应的处理。
  39. 根据权利要求31所述的通信方法,其中,所述根据所述第一GEM帧中的端口标识和所述第一GEM帧中的第一标识确定是否对所述第一GEM帧进行相应的处理包括:
    根据是否存在关联端口标识为第一GEM帧中的端口标识的第四配置信息,以及所述第一GEM帧中的第一标识是否是所述第三从网关的设备标识,确定是否对所述第一GEM帧进行相应的处理。
  40. 一种电子设备,包括:
    至少一个处理器;
    存储器,所述存储器上存储有至少一个程序,当所述至少一个程序被所述至少一个处理器执行时,使得所述至少一个处理器实现权利要求1-39任意一 项所述的通信方法。
  41. 一种计算机可读介质,所述计算机可读介质上存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器实现权利要求1-39任意一项所述的通信方法。
  42. 一种通信系统,包括:
    第一从网关,用于接收第一终端发送的以太网帧;将第一从网关的第一端口标识,以及所述以太网帧封装成第一吉比特无源光网络封装模式GEM帧,将第一GEM帧发送给主网关;其中,所述第一端口标识为光网络单元之间进行通信时使用的端口标识;
    主网关,用于接收第一从网关发送的第一GEM帧;其中,所述第一GEM帧包括:端口标识;在判断出所述第一GEM帧中的端口标识为光网络单元之间进行通信时使用的端口标识的情况下,向所有从网关发送所述第一GEM帧;
    第三从网关,用于接收主网关发送的第一GEM帧;其中,所述第一GEM帧包括:端口标识;根据所述第一GEM帧中的端口标识确定是否对所述第一GEM帧进行相应的处理。
PCT/CN2023/108581 2022-08-25 2023-07-21 通信方法和系统、电子设备、计算机可读介质 WO2024041278A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202211031290.7 2022-08-25
CN202211031290.7A CN117675095A (zh) 2022-08-25 2022-08-25 通信方法和系统、电子设备、计算机可读介质

Publications (1)

Publication Number Publication Date
WO2024041278A1 true WO2024041278A1 (zh) 2024-02-29

Family

ID=90012406

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/108581 WO2024041278A1 (zh) 2022-08-25 2023-07-21 通信方法和系统、电子设备、计算机可读介质

Country Status (2)

Country Link
CN (1) CN117675095A (zh)
WO (1) WO2024041278A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552931A (zh) * 2008-04-03 2009-10-07 中兴通讯股份有限公司 一种实现吉比特无源光网络封装模式帧重组的系统和方法
CN101815229A (zh) * 2009-02-25 2010-08-25 华为技术有限公司 一种业务适配的方法和业务适配装置
CN101867849A (zh) * 2009-04-18 2010-10-20 中兴通讯股份有限公司 吉比特无源光网络系统承载多协议的方法及封装模式帧
CN102695103A (zh) * 2011-03-25 2012-09-26 中兴通讯股份有限公司 业务转发方法及系统
CN109937545A (zh) * 2016-11-17 2019-06-25 华为技术有限公司 无源光网络的通信方法、装置和系统
CN113973239A (zh) * 2020-07-24 2022-01-25 上海诺基亚贝尔股份有限公司 用于通信的方法、装置、光网络单元、光线路终端和介质
US20220116486A1 (en) * 2019-06-27 2022-04-14 Huawei Technologies Co., Ltd. Packet processing method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552931A (zh) * 2008-04-03 2009-10-07 中兴通讯股份有限公司 一种实现吉比特无源光网络封装模式帧重组的系统和方法
CN101815229A (zh) * 2009-02-25 2010-08-25 华为技术有限公司 一种业务适配的方法和业务适配装置
CN101867849A (zh) * 2009-04-18 2010-10-20 中兴通讯股份有限公司 吉比特无源光网络系统承载多协议的方法及封装模式帧
CN102695103A (zh) * 2011-03-25 2012-09-26 中兴通讯股份有限公司 业务转发方法及系统
CN109937545A (zh) * 2016-11-17 2019-06-25 华为技术有限公司 无源光网络的通信方法、装置和系统
US20220116486A1 (en) * 2019-06-27 2022-04-14 Huawei Technologies Co., Ltd. Packet processing method and device
CN113973239A (zh) * 2020-07-24 2022-01-25 上海诺基亚贝尔股份有限公司 用于通信的方法、装置、光网络单元、光线路终端和介质

Also Published As

Publication number Publication date
CN117675095A (zh) 2024-03-08

Similar Documents

Publication Publication Date Title
US10728214B2 (en) Method for access network virtualization and proxy node
US11855891B2 (en) Packet processing method and apparatus
US7403490B2 (en) OAM capability discovery method in Ethernet passive optical network
US11627070B2 (en) Data packet processing method and apparatus, storage medium, and electronic device
US8094567B2 (en) Method for transferring test messages and network element device
RU2530299C2 (ru) Способ и система идентификации и обеспечения доступа в сеть домашнего шлюза
WO2021017634A1 (zh) 一种Wi-Fi接入点的SSID获取方法、装置、设备和系统
US10880410B2 (en) PON data compression for high efficiency
CN112492409B (zh) 一种业务配置方法及装置
EP2953302B1 (en) Service packet processing method, apparatus and system
WO2024041278A1 (zh) 通信方法和系统、电子设备、计算机可读介质
WO2017041534A1 (zh) 一种电力线网络通信的方法及装置、计算机存储介质
WO2023208116A1 (zh) 一种管控方法、装置、通信设备和计算机存储介质
WO2017193711A1 (zh) 数据传输方法及装置
WO2022088888A1 (zh) 一种多级pon网络管理方法以及相关装置
WO2016184227A1 (zh) Onu模板生成方法及装置
CN107689881B (zh) 报文处理方法以及装置
WO2014121600A1 (zh) 一种光电混合系统中下行报文的发送方法及光同轴单元
WO2020083296A1 (zh) 建立x2链接的方法、ems、基站以及存储介质
US20220377439A1 (en) Data transmitting method and apparatus, data receiving method and apparatus, communication node, and storage medium
CN112333574B (zh) 通信接入终端产品快速发现及管理方法及系统
US20210014719A1 (en) Multi-node, multi-interface, hybrid mesh network apparatus, system, and method of use
JP6351912B1 (ja) 局側光通信装置およびフレーム変換方法
CN118101056A (zh) 一种测距方法、装置及存储介质
CN116193172A (zh) 一种单播流量卸载加速方法、装置、系统及设备和介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23856368

Country of ref document: EP

Kind code of ref document: A1