CN113395215A - Communication method, system, device, electronic equipment and storage medium - Google Patents

Communication method, system, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113395215A
CN113395215A CN202110944986.8A CN202110944986A CN113395215A CN 113395215 A CN113395215 A CN 113395215A CN 202110944986 A CN202110944986 A CN 202110944986A CN 113395215 A CN113395215 A CN 113395215A
Authority
CN
China
Prior art keywords
virtual
gateway
domain
onu
forwarding table
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110944986.8A
Other languages
Chinese (zh)
Other versions
CN113395215B (en
Inventor
胡兆祥
郑直
王培佩
许巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Yangtze Optical Technology Co ltd
Original Assignee
Wuhan Yangtze Optical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Yangtze Optical Technology Co ltd filed Critical Wuhan Yangtze Optical Technology Co ltd
Priority to CN202110944986.8A priority Critical patent/CN113395215B/en
Publication of CN113395215A publication Critical patent/CN113395215A/en
Application granted granted Critical
Publication of CN113395215B publication Critical patent/CN113395215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers

Landscapes

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

Abstract

The invention provides a communication method, a system, a device, an electronic device and a storage medium; the method comprises the following steps: generating a cascade forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway; and under the condition that a first ONU in the first virtual domain needs to access a second ONU in the second virtual domain, sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table.

Description

Communication method, system, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of optical network communication technologies, and in particular, to a communication method, system, apparatus, electronic device, and storage medium.
Background
With the development of the internet and the increasing demand of the internet quality of consumers, the abundant new internet application brings a plurality of challenges to the household broadband. Fiber To The Room (FTTR) networking architectures offer The possibility for high-bandwidth home entertainment.
However, in Software Defined Networking (SDN) and Network Function Virtualization (NFV) applications, facilities such as data centers provide requirements for networking requirements across machine rooms and higher bandwidth of large two-tier networks.
Disclosure of Invention
In order to meet the increasing requirements of consumers on internet real-time application and improve the communication performance of devices in an area, embodiments of the present invention provide a communication method, a communication system, a communication device, an electronic device, and a storage medium. The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a communication method, which is applied to a communication system, wherein the system comprises a plurality of virtual domains, and each virtual domain in the virtual domains manages a plurality of Optical Network Units (ONU); the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways; the method comprises the following steps:
generating a cascade forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway;
and under the condition that a first ONU in the first virtual domain needs to access a second ONU in the second virtual domain, sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table.
In the above scheme, the method further comprises:
determining at least one second virtual domain to be cascaded by the first virtual domain;
configuring attribute information of a second virtual gateway corresponding to the at least one second virtual domain on the first virtual gateway;
sending a cascade request to the second virtual gateway according to the attribute information of the second virtual gateway;
and if feedback information of the second virtual gateway aiming at the cascade request is received, the first virtual domain and the second virtual domain enter a cascade state.
In the above scheme, the method further comprises:
generating the first forwarding table according to the information of each ONU in the first virtual domain and the service information corresponding to each ONU, which are acquired by the first virtual gateway;
and generating the second forwarding table based on the information of each ONU in the second virtual domain and the service information corresponding to each ONU, which are acquired by the second virtual gateway.
In the above scheme, the method further comprises:
if the first virtual gateway or the second virtual gateway does not acquire the message containing the first service information within the first preset time length, deleting forwarding information corresponding to the first service information in the first forwarding table or the second forwarding table; the first service information is any one of the service information recorded in the first forwarding table or the second forwarding table.
In the above aspect, the method further includes:
if the first virtual gateway or the second virtual gateway does not acquire the message containing the second service information within a second preset time length, deleting forwarding information corresponding to the second service information in the cascade forwarding table; wherein, the second service information is any one of the service information recorded in the cascade forwarding table.
In the scheme, a cascade request is sent to the second virtual gateway at regular time according to a third preset time length;
if the feedback information of the second virtual gateway aiming at the cascade request is not received within a fourth preset time length, the cascade state of the first virtual domain and the second virtual domain is released; and the fourth preset time length is less than the third preset time length.
The embodiment of the invention also provides a communication system, which comprises an optical line terminal OLT, an optical splitter and an optical network unit ONU; the OLT comprises a plurality of virtual domains, wherein each virtual domain in the virtual domains manages a plurality of Optical Network Units (ONUs); the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways; the optical splitter is respectively connected with the OLT and the plurality of ONUs;
the OLT is configured to: generating a cascade forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway; and under the condition that a first ONU in the first virtual domain needs to access a second ONU in the second virtual domain, sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table.
The embodiment of the invention also provides a communication device which is applied to a communication system, wherein the system comprises a plurality of virtual domains, and each virtual domain in the virtual domains manages a plurality of Optical Network Units (ONU); the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways; the device comprises:
a generating unit, configured to generate a cascaded forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway;
and the forwarding unit is used for sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table under the condition that the first ONU in the first virtual domain needs to access the second ONU in the second virtual domain.
An embodiment of the present invention further provides an electronic device, where the electronic device at least includes: a processor and a storage medium configured to store executable instructions, wherein: the processor is configured to execute stored executable instructions configured to perform the communication methods provided by the above-described embodiments.
The embodiment of the invention also provides a computer-readable storage medium, which stores executable instructions, and when the executable instructions are executed by a processor, the communication method provided by the embodiment of the invention is realized.
In the embodiment of the invention, when the ONU members in different virtual domains need to be accessed, the virtual domains are cascaded, a cascade forwarding table is generated, after a first virtual gateway corresponding to a first cascaded virtual domain receives request information of the ONU members in the first virtual domain, a second virtual gateway corresponding to a second virtual domain which needs to send the request information is determined according to the cascade forwarding table, and the request information of the first ONU member in the first virtual domain is sent to the second ONU member in the second virtual domain. The embodiment of the invention realizes the access among the ONU members in different virtual domains by cascading different virtual domains and determining the forwarding path of the information according to the cascaded forwarding table, thereby realizing the communication integration across the park or the area, realizing the large two-layer intercommunication of the equipment in the area and meeting the requirement of real-time application.
Drawings
Fig. 1 is a schematic flow chart of a communication method provided by an embodiment of the present invention;
fig. 2 is a flowchart illustrating a FTTR-based multi-virtual domain communication method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a communication system provided in an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a communication device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail with reference to the accompanying drawings, the described embodiments should not be construed as limiting the present invention, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
In the following description, reference is made to "some embodiments" which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict.
In the following description, references to the terms "first \ second \ third" are only to distinguish similar objects and do not denote a particular order, but rather the terms "first \ second \ third" are used to interchange specific orders or sequences, where appropriate, to enable embodiments of the invention described herein to be practiced in other than the order shown or described herein.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein is for the purpose of describing embodiments of the invention only and is not intended to be limiting of the invention.
The following describes a communication method provided by an embodiment of the present invention. Referring to fig. 1, fig. 1 is a schematic flow chart of a communication method according to an embodiment of the present invention; in some embodiments, the communication method may be implemented by an Optical Line Terminal (OLT). In some embodiments, the communication method is also applicable to a communication system, the system comprising a plurality of virtual domains, each of the plurality of virtual domains managing a plurality of Optical Network Units (ONUs); the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways; in an embodiment, the virtual gateway is used for communication between the ONU managed by the virtual domain and the outside; the at least one virtual domain may be understood as one virtual domain or a plurality of virtual domains, and the virtual domain may be a virtualized domain and may be created by an optical line terminal, and as an example, the virtual domain may be referred to as an ONU domain. Each virtual domain in the at least one virtual domain manages a plurality of optical network units, ONUs, may be understood as each virtual domain in the at least one virtual domain may collectively manage a plurality of ONUs belonging to the virtual domain. In practical application, the multiple ONUs may be deployed in the same user home, and the specific number of the ONUs may be determined according to an actual situation, which is not limited herein. As an example, the specific number of the ONUs may be 4, and each room in the same user home may be deployed by one ONU.
The communication method provided by the embodiment of the invention comprises the following steps:
step S110: generating a cascade forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway;
step S120: and under the condition that a first ONU in the first virtual domain needs to access a second ONU in the second virtual domain, sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table.
The first ONU is any one of a plurality of ONUs managed in the first virtual domain, and the second ONU is any one of a plurality of ONUs managed in the second virtual domain.
In an embodiment, the first forwarding table and the second forwarding table are stored in the first virtual gateway and the second virtual gateway, respectively. The first transfer table includes at least: and service information corresponding to each ONU managed in the first virtual domain. The second forwarding table includes at least: and service information corresponding to each ONU managed in the second virtual domain. The service information corresponding to each ONU includes but is not limited to: the service information of the ONU and the service information of the terminal electronic equipment which establishes communication connection with the ONU. The terminal electronic equipment includes but is not limited to a mobile phone, a computer and the like.
In one embodiment, each ONU managed within the virtual domain has a unique physical ONU corresponding to it.
In one embodiment, the service information includes, but is not limited to, a service IP (Internet Protocol) segment.
In an embodiment, the service information corresponding to each ONU in the virtual domain is different.
In one embodiment, the attribute information of the first virtual gateway includes: the identity information of the virtual domain, the address information of the virtual gateway, and the identity information of at least one second virtual domain and the address information of the second virtual gateway which are cascaded with the identity information of the virtual domain and the address information of the virtual gateway.
In an embodiment, the first virtual domain and the second virtual domain cascaded thereto learn respective forwarding tables to form a cascaded forwarding table, which includes but is not limited to: forwarding information in forwarding tables of the first virtual domain and the second virtual domain and corresponding relations between the forwarding tables and virtual gateways, wherein the forwarding information comprises: and ONU information in the virtual domain and service information corresponding to the ONU. In an embodiment, the ONU information includes, but is not limited to, identity information of the ONU, and the identity information of the ONU is used for distinguishing a plurality of ONUs within the virtual domain.
In an embodiment, after receiving request information sent by any ONU in a first virtual domain, a first virtual gateway parses the request information to obtain service information in the request information, and queries in a cascaded forwarding table according to the service information, determines an ONU to be sent of the request information according to a correspondence between the service information in the cascaded forwarding table and the ONU, and determines a virtual domain to be sent of the request information according to a relationship between the ONU to be sent and the virtual domain, so as to determine a virtual gateway to be sent according to the virtual domain to be sent, and the first virtual gateway encapsulates the request information and sends the encapsulated request information to the determined virtual gateway to be sent according to attribute information of the determined virtual gateway to be sent. And the virtual gateway to be sent analyzes the encapsulated request information, queries a forwarding table stored by the virtual gateway, and determines the ONU to be sent of the request information.
In an embodiment, a first cascaded forwarding table is generated and stored in a first virtual gateway based on a first forwarding table of the first virtual gateway and a second forwarding table of at least one second virtual gateway, respectively, and the second cascaded forwarding table is stored in the second virtual gateway, and the first cascaded forwarding table includes but is not limited to: forwarding tables of the first virtual domain and the at least one second virtual domain and corresponding relations between the forwarding tables and the virtual gateways. The second cascade forwarding table comprises: a second forwarding table of the second virtual gateway and a forwarding table of the first virtual gateway, and a corresponding relation between the forwarding table of the first virtual gateway and the first virtual gateway.
In an embodiment, when the first virtual domain and the second virtual domain are in a cascade state, the second virtual gateway receives request information sent by any one ONU in the second virtual domain, analyzes the request information to obtain service information in the request information, queries a second cascade forwarding table according to the service information, if the query is successful, sends the request information to the first virtual gateway, and the first virtual gateway sends the request information to a corresponding ONU member according to a first forwarding table stored in the first virtual gateway, so that the ONU member in the second virtual domain accesses the ONU member in the first virtual domain.
In this embodiment, when access between ONU members in different virtual domains needs to be performed, the virtual domains are cascaded to generate a cascaded forwarding table, after receiving request information of an ONU member in a first virtual domain, a first virtual gateway corresponding to a first virtual domain that is cascaded determines, according to the cascaded forwarding table, a second virtual gateway corresponding to a second virtual domain to which the request information needs to be sent, and sends the request information of the first ONU member in the first virtual domain to the second ONU member in the second virtual domain. The embodiment of the invention realizes the access among the ONU members in different virtual domains by cascading different virtual domains and determining the forwarding path of the information according to the cascaded forwarding table, thereby realizing the communication integration across the park or the area, realizing the large two-layer intercommunication of the equipment in the area and meeting the requirement of real-time application.
In some embodiments, the method further comprises:
determining at least one second virtual domain to be cascaded by the first virtual domain;
configuring attribute information of a second virtual gateway corresponding to the at least one second virtual domain on the first virtual gateway;
sending a cascade request to the second virtual gateway according to the attribute information of the second virtual gateway;
and if feedback information of the second virtual gateway aiming at the cascade request is received, the first virtual domain and the second virtual domain enter a cascade state.
In an embodiment, at least one of the second virtual domains to be cascaded with the first virtual domain may be determined according to a user requirement. In another embodiment, at least one second virtual domain to be cascaded to the first virtual domain may be determined according to preset information, where the preset information may be cascade history information of the first virtual domain within a preset time duration, and the cascade history information may include attribute information of a virtual gateway corresponding to a virtual domain that the first virtual domain has been cascaded to. The preset time period may be set arbitrarily, and is not limited in this embodiment.
In one embodiment, the attribute information of the virtual gateway includes, but is not limited to: identity information of a virtual domain of the virtual gateway, and address information of the virtual gateway.
In an embodiment, the OLT configures, on a gateway interface of a first Virtual gateway, identity information of a second Virtual domain to be cascaded and address information of the second Virtual gateway, sends a cascade request to the second Virtual gateway to be cascaded through a Virtual Remote Control Protocol (VRCP), if the second Virtual gateway responds to the cascade request, the first Virtual domain and the second Virtual domain to be cascaded are successfully cascaded, and a Virtual point-to-point communication channel is established between the first Virtual gateway and the second Virtual gateway through a Transmission Control Protocol/Internet Protocol (TCP/IP).
In this embodiment, by configuring attribute information of a virtual gateway to be cascaded on a cascaded virtual gateway and sending a cascade request to a virtual gateway corresponding to a virtual domain to be cascaded, a virtual communication channel between different virtual domains is established, so that information transmission between different virtual domains is realized through the virtual gateway.
In some embodiments, the method further comprises:
generating the first forwarding table according to the information of each ONU in the first virtual domain and the service information corresponding to each ONU, which are acquired by the first virtual gateway;
and generating the second forwarding table based on the information of each ONU in the second virtual domain and the service information corresponding to each ONU, which are acquired by the second virtual gateway.
In an embodiment, the first virtual gateway acquires information of each ONU managed by a first virtual domain corresponding to the first virtual gateway in real time and service information corresponding to each ONU, and generates a first forwarding table based on the information acquired from the first virtual domain and stores the first forwarding table in the first virtual gateway. The second virtual gateway acquires information of each ONU managed by a second virtual domain corresponding to the second virtual gateway and service information corresponding to each ONU in real time, and generates a second forwarding table based on the information acquired from the second virtual domain and stores the second forwarding table in the second virtual gateway.
The first forwarding table and the second forwarding table are dynamic forwarding tables and can represent the current effective information forwarding path in the virtual domain, so that the invalid forwarding of information is reduced, and the accuracy and the efficiency of information transmission are improved.
In some embodiments, the method further comprises:
if the first virtual gateway or the second virtual gateway does not acquire the message containing the first service information within the first preset time length, deleting forwarding information corresponding to the first service information in the first forwarding table or the second forwarding table; the first service information is any one of the service information recorded in the first forwarding table or the second forwarding table.
In an embodiment, if the first virtual gateway does not acquire a packet containing first service information within a first preset time period, deleting forwarding information corresponding to the first service information in a first forwarding table; if the message containing the first service information is not acquired by the second virtual gateway within the first preset time, deleting forwarding information corresponding to the first service information in a second forwarding table; therefore, the forwarding table stored by the virtual gateway is updated in real time so as to prevent the forwarding table from being congested or invalid.
In some embodiments, the method further comprises:
if the first virtual gateway or the second virtual gateway does not acquire the message containing the second service information within a second preset time length, deleting forwarding information corresponding to the second service information in the cascade forwarding table; wherein, the second service information is any one of the service information recorded in the cascade forwarding table.
In an embodiment, when the second service information in the cascaded forwarding table does not participate in the forwarding of the information within a second preset time, the forwarding information corresponding to the second service information in the cascaded forwarding table is deleted, so that the cascaded forwarding table is updated, the congestion or the failure of the cascaded forwarding table is prevented, and the information forwarding efficiency between different virtual domain members is improved.
In an embodiment, the first preset time period and the second preset time period may be the same or different, and may be set according to a user requirement.
In some embodiments, the method further comprises:
sending a cascade request to the second virtual gateway at regular time according to a third preset time length;
if the feedback information of the second virtual gateway aiming at the cascade request is not received within a fourth preset time length, the cascade state of the first virtual domain and the second virtual domain is released; and the fourth preset time length is less than the third preset time length.
In this embodiment, after the first virtual gateway and the second virtual gateway are cascaded, a cascade request is sent to the second virtual gateway at regular time according to a third preset time duration, that is, a cascade request is sent to the second virtual gateway at every third preset time duration, if a response message to the cascade request is not received within a fourth preset time duration, it is determined that the communication connection between the first virtual gateway and the second virtual gateway is disconnected or communication is abnormal, and the first virtual domain and the second virtual domain are no longer in a cascade state. The embodiment can confirm the connection state between the virtual domains in time by regularly checking the cascade state between the two virtual domains, thereby reducing the probability of communication failure between different virtual domains.
In some embodiments, the method further comprises:
and updating the cascaded forwarding table based on a first forwarding table of the first virtual gateway corresponding to the cascaded first virtual domain and a second forwarding table of a second virtual gateway corresponding to at least one cascaded second virtual domain according to a fifth preset time length.
And updating the cascade forwarding table at regular time according to the first forwarding table and the second forwarding table to form a dynamic cascade forwarding table, thereby preventing the congestion or failure of the cascade forwarding table.
In an embodiment, the third preset time period and the fifth preset time period may be the same or different, and both may be set according to a user requirement.
One specific example is provided below in connection with the above embodiments:
the example provides a FTTR-based multi-virtual domain communication method, which is characterized in that distributed G/EPON equipment is processed through a unified virtualization technology, so that across-park or regional bandwidth integration is realized, large two-layer intercommunication of equipment in a region is realized, and the requirement of real-time application is met with higher bandwidth.
The FTTR-based multi-virtual domain communication method proposed by this example is applicable to a communication system, where the system includes a plurality of virtual domains, and each virtual domain in the plurality of virtual domains manages a plurality of optical network units ONU; the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways. In this example, the virtual gateway includes: virtual Route interFace (VRF).
As shown in fig. 2, the FTTR-based multi-virtual domain communication method includes:
s210: a VRF corresponding to the virtual domain is created in the OLT.
The OLT creates VRFs associated with the virtual domains in the managed FTTR systems respectively, and defaults that ONU sub-members in the FTTR systems only communicate in the virtual domains to which the ONU sub-members belong, and when the ONU sub-members in the domains need external communication, the ONU sub-members must firstly make a request through the VRFs corresponding to the domains.
The attribute information of each VRF includes: virtual domain Identity (ID), VRF node IP, a set of cascaded domain information, where the set can record information of cascaded multiple virtual domains, and includes: and cascading the virtual domain ID and the VRF node IP.
The VRF can automatically record ONU member information in a virtual domain corresponding to the VRF and/or a service IP network segment corresponding to the ONU member through learning, and the information is used as a learning item and is recorded into a local forwarding table. The VRF does not learn other forwarding information outside of the virtual domain.
S220: and starting the cascade configuration according to the cascade requirement.
When different virtual domains need to be cascaded, firstly, continuously configuring a VRF node IP of the virtual domain to be cascaded on a VRF interface through the OLT, starting the cascade configuration after the virtual domain ID to be cascaded.
S230: and performing cascade connection by communicating with the VRF to be cascaded.
After receiving the cascade starting configuration, the VRF actively tries VRF communication of the virtual domain to be cascaded through an expanded VRCP protocol to request cascade connection. If the VRF of the virtual domain to be cascaded allows the cascading, the two parties can mutually inform the respective states through the VRCP protocol and enter the cascading state.
Two VRFs in the cascade state can send expanded VRCP heartbeat information at regular time, exchange local forwarding tables learned in respective corresponding virtual domains and form a cascade forwarding table. If the heartbeat connection is disconnected after the timeout period is reached, the cascade state is also automatically disconnected.
S240: and according to the cascade forwarding table, carrying out communication among ONU members in different virtual domains in a cascade state.
The VRF in the cascade state is responsible for establishing a virtual channel of L2 based on the VRF node IP, that is, establishing point-to-point communication of two VRF nodes through a TCP/IP protocol, and L2 data messages are required in respective virtual domains carried in TCP PAYLOAD fields of the VRF nodes. Specifically, the method comprises the following steps: when an ONU sub-member of one FTTR virtual domain a needs to access an ONU sub-member of another FTTR virtual domain B, the ONU sub-member L1 of the first-choice domain needs to send a message request to the VRF to which it belongs, and after receiving the request, the VRF parses the destination service IP network segment in the message sent by L1, and queries the IP of the cascaded VRF in which the destination service IP network segment is located in the cascaded forwarding table by using it as an index. And when the query is successful, directly encapsulating the message sent by the L1 into a TCP DATA field to form a forwarding message, and forwarding the forwarding message to the queried VRF. The inquired VRF is responsible for analyzing and processing the forwarding message, and forwarding the analyzed message to ONU sub-members in the virtual domain (virtual domain B) according to the local forwarding table.
In this example, the local forwarding table and the cascade forwarding table are both provided with a timer, and when the timer is overtime and the VRF does not receive the message forwarding of the corresponding service IP network segment, the forwarding entry corresponding to the service IP network segment is automatically deleted from the forwarding table, so as to prevent the forwarding table from being congested or invalid.
Continuing to describe the communication system provided in the embodiment of the present invention, based on the same inventive concept as that described above, fig. 3 is a schematic structural diagram of a communication system provided in the embodiment of the present invention, where the system includes an optical line terminal OLT, an optical splitter, and an optical network unit ONU; the OLT comprises a plurality of virtual domains, wherein each virtual domain in the virtual domains manages a plurality of Optical Network Units (ONUs); the virtual domains correspond to the virtual gateways one to one, and the optical splitter is connected with the OLT and the ONU respectively;
the OLT is used for generating a cascade forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway; and under the condition that a first ONU in the first virtual domain needs to access a second ONU in the second virtual domain, sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table.
It should be noted that the OLT includes multiple virtual domains, and multiple virtual domains are shown in fig. 3, and n ONUs, which are ONUs 1, an. M (m < n) ONUs are deployed in a user home, one ONU is deployed in each room, and the positions of the m ONUs can be different. m may be determined according to an actual situation, and is not limited herein, 1, 2, and … … m in the first virtual domain are respectively virtual controlled objects corresponding to m ONUs deployed in m rooms of the user a home, and as an example, m may be 4, and the first virtual domain has a unique first virtual gateway corresponding thereto.
And two ONUs (optical network units) of the ONUp and the ONUq are deployed in a B-user family, p and q in a second virtual domain are respectively virtual controlled objects corresponding to the ONUs deployed in the room p and the room q, and the second virtual domain has a unique second virtual gateway corresponding to the second virtual gateway. The ONU deployment at B-user homes here is just an example.
On the basis of a virtual framework of an FTTR (fiber to the Home) family networking management entity, a plurality of entity ONUs (optical network units) under a single user family are added into a virtual domain, the plurality of user families correspond to a plurality of virtual domains, each virtual domain corresponds to a unique virtual gateway and is used for communication between a virtual controlled object in the virtual domain and the outside, and a corresponding virtual controlled object is established in the virtual domain, so that the OLT (optical line terminal) only needs to indirectly manage the plurality of entity ONUs through the virtual controlled object in the virtual domain.
Continuing with the description of the communication device provided by the embodiments of the present invention, in some embodiments, the communication device may be implemented as a software module. In some embodiments, the communication device is applicable to a communication system comprising a plurality of virtual domains, each of the plurality of virtual domains managing a plurality of optical network units, ONUs; the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a communication device according to an embodiment of the present invention, where a communication device 400 according to an embodiment of the present invention includes:
a generating unit 410, configured to generate a cascaded forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway;
a forwarding unit 420, configured to send, when a first ONU in the first virtual domain needs to access a second ONU in the second virtual domain, request information to the second ONU based on service information carried by the request information of the first ONU and the cascade forwarding table.
In some embodiments, the apparatus further comprises:
a determining unit, configured to determine at least one second virtual domain to be cascaded with the first virtual domain;
a configuration unit, configured to configure, on the first virtual gateway, attribute information of a second virtual gateway corresponding to the at least one second virtual domain;
the cascade unit is used for sending a cascade request to the second virtual gateway according to the attribute information of the second virtual gateway; and if feedback information of the second virtual gateway for the cascade request is received, the first virtual domain and the second virtual domain enter a cascade state.
In some embodiments, the generating unit is further configured to: generating the first forwarding table according to the information of each ONU in the first virtual domain and the service information corresponding to each ONU, which are acquired by the first virtual gateway; and generating the second forwarding table based on the information of each ONU in the second virtual domain and the service information corresponding to each ONU, which are acquired by the second virtual gateway.
In some embodiments, the apparatus further comprises: a first updating unit configured to: if the first virtual gateway or the second virtual gateway does not acquire the message containing the first service information within the first preset time length, deleting forwarding information corresponding to the first service information in the first forwarding table or the second forwarding table; the first service information is any one of the service information recorded in the first forwarding table or the second forwarding table.
In some embodiments, the apparatus further comprises: a second updating unit, configured to delete forwarding information corresponding to second service information in the cascade forwarding table if the first virtual gateway or the second virtual gateway does not acquire a packet including the second service information within a second preset duration; wherein, the second service information is any one of the service information recorded in the cascade forwarding table.
In some embodiments, the apparatus further comprises: a connection unit for: sending a cascade request to the second virtual gateway at regular time according to a third preset time length; if the feedback information of the second virtual gateway aiming at the cascade request is not received within a fourth preset time length, the cascade state of the first virtual domain and the second virtual domain is released; and the fourth preset time length is less than the third preset time length.
An embodiment of the present invention further provides an electronic device, where the electronic device at least includes: a processor and a storage medium configured to store executable instructions, wherein:
the processor is configured to execute stored executable instructions configured to perform the communication methods provided by embodiments of the present invention.
It should be noted that fig. 5 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, and as shown in fig. 5, the device 500 at least includes: a processor 510, a communication interface 520, a memory 530, and a bus system 540, wherein:
processor 510 generally controls the overall operation of device 500.
Communication interface 520 may enable a device to communicate with other devices over a network.
The Memory 530 is configured to store instructions and applications executable by the processor 510, and may also buffer data (e.g., image data, audio data, voice communication data, and video communication data) to be processed or already processed by the processor 510 and modules in the device 500, and may be implemented by a FLASH Memory (FLASH) or a Random Access Memory (RAM).
It is understood that the bus system 540 is used to enable communications among the components. The bus system 540 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 540 in fig. 5. The various components in the electronic device 500 are coupled together by a bus system 540.
It should be noted that, in the embodiment of the present application, if the communication method is implemented in the form of a software functional module and sold or used as a standalone product, the communication method may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a server to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Correspondingly, the embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps in the communication method provided by the above embodiment.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
Of course, the apparatus in the embodiment of the present application may have other similar protocol interaction implementation cases, and those skilled in the art can make various corresponding changes and modifications according to the embodiment of the present application without departing from the spirit and the spirit of the present application, but these corresponding changes and modifications should fall within the scope of the claims appended to the method of the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the modules is only one logical functional division, and there may be other division ways in actual implementation, such as: multiple modules or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or modules may be electrical, mechanical or other.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical modules; the network module can be located in one place or distributed on a plurality of network modules; some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. A communication method is applied to a communication system, the system comprises a plurality of virtual domains, and each virtual domain in the virtual domains manages a plurality of Optical Network Units (ONUs); the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways; the method comprises the following steps:
generating a cascade forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway;
and under the condition that a first ONU in the first virtual domain needs to access a second ONU in the second virtual domain, sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table.
2. The communication method of claim 1, wherein the method further comprises:
determining at least one second virtual domain to be cascaded by the first virtual domain;
configuring attribute information of a second virtual gateway corresponding to the at least one second virtual domain on the first virtual gateway;
sending a cascade request to the second virtual gateway according to the attribute information of the second virtual gateway;
and if feedback information of the second virtual gateway aiming at the cascade request is received, the first virtual domain and the second virtual domain enter a cascade state.
3. The communication method of claim 1, wherein the method further comprises:
generating the first forwarding table according to the information of each ONU in the first virtual domain and the service information corresponding to each ONU, which are acquired by the first virtual gateway;
and generating the second forwarding table based on the information of each ONU in the second virtual domain and the service information corresponding to each ONU, which are acquired by the second virtual gateway.
4. The communication method of claim 3, wherein the method further comprises:
if the first virtual gateway or the second virtual gateway does not acquire the message containing the first service information within the first preset time length, deleting forwarding information corresponding to the first service information in the first forwarding table or the second forwarding table; the first service information is any one of the service information recorded in the first forwarding table or the second forwarding table.
5. The communication method of claim 1, wherein the method further comprises:
if the first virtual gateway or the second virtual gateway does not acquire the message containing the second service information within a second preset time length, deleting forwarding information corresponding to the second service information in the cascade forwarding table; wherein, the second service information is any one of the service information recorded in the cascade forwarding table.
6. The communication method of claim 1, wherein the method further comprises:
sending a cascade request to the second virtual gateway at regular time according to a third preset time length;
if the feedback information of the second virtual gateway aiming at the cascade request is not received within a fourth preset time length, the cascade state of the first virtual domain and the second virtual domain is released; and the fourth preset time length is less than the third preset time length.
7. A communication system is characterized in that the system comprises an Optical Line Terminal (OLT), an optical splitter and an Optical Network Unit (ONU); the OLT comprises a plurality of virtual domains, wherein each virtual domain in the virtual domains manages a plurality of Optical Network Units (ONUs); the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways; the optical splitter is respectively connected with the OLT and the plurality of ONUs;
the OLT is configured to: generating a cascade forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway; and under the condition that a first ONU in the first virtual domain needs to access a second ONU in the second virtual domain, sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table.
8. A communication apparatus, applied to a communication system, the system comprising a plurality of virtual domains, each of the plurality of virtual domains managing a plurality of optical network units, ONUs; the plurality of virtual domains are respectively in one-to-one correspondence with the plurality of virtual gateways; the device comprises:
a generating unit, configured to generate a cascaded forwarding table based on a first forwarding table of a first virtual gateway and a second forwarding table of at least one second virtual gateway; the first virtual gateway is a gateway corresponding to a cascaded first virtual domain; the first virtual domain is any one of the plurality of virtual domains; the second virtual gateway is a gateway corresponding to a cascaded second virtual domain; the second virtual domain is any virtual domain of the plurality of virtual domains except the first virtual domain; the cascade forwarding table comprises a mapping relation between service information corresponding to each ONU in the second virtual domain and the second virtual gateway;
and the forwarding unit is used for sending the request information to the second ONU based on the service information carried by the request information of the first ONU and the cascade forwarding table under the condition that the first ONU in the first virtual domain needs to access the second ONU in the second virtual domain.
9. An electronic device, characterized in that the device comprises at least: a processor and a storage medium configured to store executable instructions, wherein:
the processor is configured to execute stored executable instructions configured to perform the communication method provided by any of the preceding claims 1 to 6.
10. A computer-readable storage medium having computer-executable instructions stored therein, the computer-executable instructions being configured to perform the communication method provided by any one of the preceding claims 1 to 6.
CN202110944986.8A 2021-08-17 2021-08-17 Communication method, system, device, electronic equipment and storage medium Active CN113395215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110944986.8A CN113395215B (en) 2021-08-17 2021-08-17 Communication method, system, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110944986.8A CN113395215B (en) 2021-08-17 2021-08-17 Communication method, system, device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113395215A true CN113395215A (en) 2021-09-14
CN113395215B CN113395215B (en) 2021-11-02

Family

ID=77622708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110944986.8A Active CN113395215B (en) 2021-08-17 2021-08-17 Communication method, system, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113395215B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361605A (en) * 2022-10-20 2022-11-18 武汉长光科技有限公司 Method, device, equipment and computer readable storage medium for roaming in virtual domain

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180159772A1 (en) * 2016-12-02 2018-06-07 Adtran, Inc. Selective mac address learning
CN112260990A (en) * 2020-09-16 2021-01-22 厦门网宿有限公司 Method and device for safely accessing intranet application
CN112911427A (en) * 2021-01-29 2021-06-04 烽火通信科技股份有限公司 Passive optical network optical module, all-optical access network system and control method
CN113132828A (en) * 2021-06-16 2021-07-16 武汉长光科技有限公司 Configuration method, device, equipment, system and storage medium
CN113141550A (en) * 2021-06-22 2021-07-20 武汉长光科技有限公司 Management method and device of optical network unit, electronic equipment and storage medium
CN113163277A (en) * 2021-06-23 2021-07-23 武汉长光科技有限公司 Optical network unit bandwidth management method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180159772A1 (en) * 2016-12-02 2018-06-07 Adtran, Inc. Selective mac address learning
CN112260990A (en) * 2020-09-16 2021-01-22 厦门网宿有限公司 Method and device for safely accessing intranet application
CN112911427A (en) * 2021-01-29 2021-06-04 烽火通信科技股份有限公司 Passive optical network optical module, all-optical access network system and control method
CN113132828A (en) * 2021-06-16 2021-07-16 武汉长光科技有限公司 Configuration method, device, equipment, system and storage medium
CN113141550A (en) * 2021-06-22 2021-07-20 武汉长光科技有限公司 Management method and device of optical network unit, electronic equipment and storage medium
CN113163277A (en) * 2021-06-23 2021-07-23 武汉长光科技有限公司 Optical network unit bandwidth management method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115361605A (en) * 2022-10-20 2022-11-18 武汉长光科技有限公司 Method, device, equipment and computer readable storage medium for roaming in virtual domain

Also Published As

Publication number Publication date
CN113395215B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
EP3506031B1 (en) Smart household control method and system
CN1879361B (en) Adaptable network bridge
RU2530299C2 (en) Method and system for identifying and accessing network for home gateway
CN104301141B (en) A kind of method, apparatus and system for preserving configuration information
US10855576B2 (en) Information transmission method and device
US8521877B2 (en) Method for configuring access rights, control point, device and communication system
US20180124168A1 (en) Load balancing server for forwarding prioritized traffic from and to one or more prioritized auto-configuration servers
CN113395215B (en) Communication method, system, device, electronic equipment and storage medium
CN101494561A (en) Network management method and system based on simple network management protocol
CN113315717B (en) Service balancing method and device, electronic equipment and storage medium
WO2016202016A1 (en) Device management method, apparatus and system
CN111682968B (en) Network access management method and system for communication equipment
CN112217649A (en) Terminal device management method, server and terminal device
CN108574637B (en) Address self-learning method and device and switch
CN113422623B (en) Management method, system, device, electronic equipment and storage medium
CN102025576A (en) Home automation system and control method thereof
CN113596188B (en) Multi-device management method and device
CN110474781B (en) Method and device for forwarding multicast data
CN101610293A (en) Control method, control point equipment, equipment and system
CN113423029A (en) Management method, system, device, electronic equipment and storage medium
CN107911477B (en) Data communication method, device and system
CN113453099B (en) Multicast configuration method, system, device, electronic equipment and storage medium
CN112152889B (en) Method of controlling electronic device, computing device, and computer-readable storage medium
CN105591794A (en) Method and device for managing network equipment
CN112260947B (en) Network configuration method and device

Legal Events

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