CN113315717B - Service balancing method and device, electronic equipment and storage medium - Google Patents

Service balancing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113315717B
CN113315717B CN202110879779.9A CN202110879779A CN113315717B CN 113315717 B CN113315717 B CN 113315717B CN 202110879779 A CN202110879779 A CN 202110879779A CN 113315717 B CN113315717 B CN 113315717B
Authority
CN
China
Prior art keywords
link
onu
communication link
communication
forwarding
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.)
Active
Application number
CN202110879779.9A
Other languages
Chinese (zh)
Other versions
CN113315717A (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 CN202110879779.9A priority Critical patent/CN113315717B/en
Publication of CN113315717A publication Critical patent/CN113315717A/en
Application granted granted Critical
Publication of CN113315717B publication Critical patent/CN113315717B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/70Routing based on monitoring results
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables

Abstract

The invention discloses a service balancing method, a service balancing device, electronic equipment and a storage medium. The method comprises the following steps: under the condition of receiving a link monitoring message sent by a first virtual domain, generating a communication link table based on the link monitoring message; the communication link table is used for storing the link cost of a communication link associated with the first ONU and/or the identification information of the forwarding ONU; the link cost is used for reflecting the bandwidth use condition of the communication link; the forwarding ONU is used for forwarding the received link monitoring message to the first ONU; under the condition that user services are received, selecting a shortest link for communication with an optical fiber line terminal OLT in the FTTR system from communication links associated with the first ONU based on a communication link table, and realizing balanced transmission of the user services based on the shortest link; the shortest link is the communication link with the least link cost and/or the least number of forwarding ONUs in the communication link associated with the first ONU.

Description

Service balancing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for service balancing, an electronic device, and a storage medium.
Background
Currently, in a Fiber To The Room (FTTR) system, based on an existing Gigabit/Ethernet Passive Optical Network (G/EPON) management mode, a Point-to-Point (P2P) management mode is adopted for The management of Optical Network Units (ONUs), in other words, a mode is adopted for The management of ONUs, for example, management of service provisioning, and an Optical Line Terminal (OLT) needs to configure each ONU individually, and based on The limitation of such a Network structure, The services on The ONUs cannot be balanced.
Disclosure of Invention
In view of the above, the present invention provides a service balancing method, an apparatus, an electronic device and a storage medium, where the method is applied to an FTTR system including a virtual domain, where the virtual domain can manage multiple ONUs, can implement that service flows of the multiple ONUs share a link bandwidth, and a service path is a multi-link coexistence, and under such a network structure, can implement balancing processing on services on the ONUs to meet requirements of a high-capacity and high-real-time service scenario.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, the present invention provides a service balancing method, which is applied to a first optical network unit ONU, where the first ONU is one of multiple ONUs managed by a first virtual domain in an FTTR system from an optical fiber to a room, and the first virtual domain is any one of at least one virtual domain included in the FTTR system; under the management of the first virtual domain, the service flows of the ONUs share link bandwidth, and service paths coexist in multiple links; the method comprises the following steps:
under the condition of receiving a link monitoring message sent by the first virtual domain, generating a communication link table based on the link monitoring message; the communication link table is used for storing link cost of a communication link associated with the first ONU and/or identification information of a forwarding ONU; the communication link is a communication link between the first virtual domain and the first ONU; the link cost is used for reflecting the bandwidth use condition of the communication link; the forwarding ONU is used for forwarding the received link monitoring message to the first ONU; the forwarding ONU is an ONU in the plurality of ONUs except the first ONU;
under the condition that user traffic is received, selecting a shortest link for communication with an optical fiber line terminal (OLT) in the FTTR system from the communication links associated with the first ONU based on the communication link table, and realizing balanced transmission of the user traffic based on the shortest link; the shortest link is the communication link with the smallest link cost and/or the smallest number of forwarding ONUs in the communication links associated with the first ONU.
In the above scheme, the receiving the link monitoring packet sent by the first virtual domain includes:
directly receiving a link monitoring message sent by the first virtual domain, and/or receiving the link monitoring message forwarded by at least one second ONU; the second ONU is an ONU in the first virtual domain except the first ONU.
In the above aspect, the method further includes:
and the link monitoring message reaches the first ONU after being forwarded by the plurality of forwarding ONUs.
In the above aspect, the method further includes:
recording identification information of each forwarding ONU in a first communication link;
accumulating the sub-link cost of each segment of sub-communication link in the first communication link to obtain the link cost of the first communication link;
wherein the first communication link is any communication link between the first virtual domain and the first ONU; each section of the sub-communication link is a communication link from the first virtual domain to a forwarding ONU or a communication link between adjacent forwarding ONUs; the sub-link cost is the link cost corresponding to the corresponding sub-communication link.
In the foregoing solution, in the case that the first virtual domain periodically sends a link monitoring packet, the method further includes:
updating the communication link table periodically based on the link monitoring message;
selecting a new shortest link for communication with the OLT based on the updated communication link table in case of receiving a new user service; transmitting the new user traffic to the OLT based on the new shortest link.
In the above aspect, the method further includes:
feeding back a confirmation message corresponding to the link monitoring message to the OLT; the acknowledgement message includes the communication link table.
In the above scheme, the OLT and the ONUs communicate with each other by using an optical fiber; and wireless communication is adopted among the plurality of ONUs.
In a second aspect, the present invention further provides a service balancing apparatus, which is applied to a first optical network unit ONU, where the first ONU is one of multiple ONUs managed by a first virtual domain in an fiber to the room FTTR system, and the first virtual domain is any one of at least one virtual domain included in the FTTR system; under the management of the first virtual domain, the service traffic of the ONUs shares link bandwidth, and the service paths coexist in multiple links, and the apparatus includes: a determination unit and a selection unit, wherein;
the determining unit is configured to generate a communication link table based on the link monitoring packet when receiving the link monitoring packet sent by the first virtual domain; the communication link table is used for storing the link cost of the communication link and/or forwarding the identification information of the ONU; the communication link is a communication link between the first virtual domain and the first ONU; the link cost is used for reflecting the bandwidth use condition of the communication link; the forwarding ONU is used for forwarding the received link monitoring message to the first ONU; the forwarding ONU is an ONU in the plurality of ONUs except the first ONU;
the selecting unit is configured to, in a case that a user service is received, select, based on the communication link table, a shortest link for communication with an optical fiber line terminal OLT in the FTTR system from among the communication links associated with the first ONU, and implement balanced transmission of the user service based on the shortest link; the shortest link is the communication link with the smallest link cost and/or the smallest number of forwarding ONUs in the communication links associated with the first ONU.
In the above solution, the apparatus further comprises: a recording unit and an accumulating unit, wherein;
the recording unit is used for recording the identification information of each forwarding ONU in the first communication link;
the accumulation unit is configured to accumulate the sub-link cost of each segment of the sub-communication link in the first communication link to obtain the link cost of the first communication link;
wherein the first communication link is any communication link between the first virtual domain and the first ONU; each section of the sub-communication link is a communication link from the first virtual domain to a forwarding ONU or a communication link between adjacent forwarding ONUs; the sub-link cost is the link cost corresponding to the corresponding sub-communication link.
In the above solution, the apparatus further comprises: an updating unit, configured to periodically update the communication link table based on the link monitoring packet when the first virtual domain periodically sends the link monitoring packet;
the selecting unit is further configured to select a new shortest link for communication with the OLT based on the updated communication link table when a new user service is received; transmitting the new user traffic to the OLT based on the new shortest link.
In the above solution, the apparatus further comprises: a sending unit, configured to feed back, to the OLT, a confirmation message corresponding to the link monitoring message; the acknowledgement message includes the communication link table.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored; the computer program, when executed by a processor, implements the steps of any of the methods described above.
In a fourth aspect, an embodiment of the present invention provides an electronic device, where the electronic device includes: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of any of the above methods when executing the computer program.
The embodiment of the invention provides a service balancing method, a service balancing device, electronic equipment and a storage medium. The method is applied to a first Optical Network Unit (ONU), wherein the first ONU is one of a plurality of ONUs managed by a first virtual domain in a fiber-to-the-home (FTTR) system, and the first virtual domain is any one of at least one virtual domain contained in the FTTR system; under the management of the first virtual domain, the service traffic of the ONUs shares link bandwidth, and the service paths coexist in multiple links, including: under the condition of receiving a link monitoring message sent by the first virtual domain, generating a communication link table based on the link monitoring message; the communication link table is used for storing link cost of a communication link associated with the first ONU and/or identification information of a forwarding ONU; the communication link is a communication link between the first virtual domain and the first ONU; the link cost is used for reflecting the bandwidth use condition of the communication link; the forwarding ONU is used for forwarding the received link monitoring message to the first ONU; the forwarding ONU is an ONU in the plurality of ONUs except the first ONU; under the condition that user traffic is received, selecting a shortest link for communication with an optical fiber line terminal (OLT) in the FTTR system from the communication links associated with the first ONU based on the communication link table, and realizing balanced transmission of the user traffic based on the shortest link; the shortest link is the communication link with the smallest link cost and/or the smallest number of forwarding ONUs in the communication links associated with the first ONU. The service balancing method and the device provided by the embodiment of the invention realize that the service flow of the plurality of ONUs shares the link bandwidth and the service path is the coexistence of multiple links by arranging the virtual domain in the FTTR system and managing the plurality of ONUs, and further select the shortest link, namely the optimal link, from the communication link table by determining the communication link table associated with the ONUs to transmit the incoming user service, thereby realizing the balanced transmission of the service on each communication link associated with the ONUs, ensuring that the allocation and the use of transmission resources in the FTTR system are more efficient, and further meeting the requirements of high-capacity and high-real-time service scenes.
Drawings
Fig. 1 is a schematic flow chart of a service balancing method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an FTTR system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service balancing apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure 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 embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of a service balancing method according to an embodiment of the present invention. As shown in fig. 1, the method is applied to a first optical network unit ONU, where the first ONU is one of a plurality of ONUs managed by a first virtual domain in a fiber-to-the-home FTTR system, and the first virtual domain is any one of at least one virtual domain included in the FTTR system; under the management of the first virtual domain, the service flows of the ONUs share the link bandwidth, and the service paths coexist in multiple links, and the process specifically includes:
s101: under the condition of receiving a link monitoring message sent by the first virtual domain, generating a communication link table based on the link monitoring message; the communication link table is used for storing link cost of a communication link associated with the first ONU and/or identification information of a forwarding ONU; the communication link is a communication link between the first virtual domain and the first ONU; the link cost is used for reflecting the bandwidth use condition of the communication link; the forwarding ONU is used for forwarding the received link monitoring message to the first ONU; the forwarding ONU is an ONU of the plurality of ONUs except the first ONU.
It should be noted that, as shown in fig. 2, the FTTR system may include at least one OLT, at least one Optical Distribution Network (ODN), and n ONUs, where n is a positive integer; part of the n ONUs can be arranged in different rooms of the same user family, for example, m rooms of the user family 1 are provided with one ONU in each room, and the FTTR system can meet the current mainstream family entertainment and interconnection requirements, and simultaneously brings high-bandwidth and high-capacity support capability of an optical fiber channel, for example, requirements of family Virtual Reality (VR) entertainment, high-speed internet of things, real-time network experience and the like.
Here, the virtual domain may be configured for the OLT in the FTTR system, created for the OLT in the FTTR system, and may be used to manage at least one of the ONUs in the FTTR system, for example, in the FTTR system in fig. 2, the OLT may create a virtual domain that manages m ONUs in the user's home 1. The first virtual domain is any one of at least one virtual domain included in the FTTR system. For explaining the service balancing method provided by the embodiment of the present invention, the first virtual domain is taken as an example. All virtual domains mentioned below are the first virtual domain.
Under the management of the first virtual domain, the service traffic of the plurality of ONUs shares link bandwidth, the service paths coexist in multiple links, wherein, said sharing link bandwidth of the traffic flow of the plurality of ONUs may refer to that in the aforementioned FTTR system, a plurality of ONUs managed in a first virtual domain transmit service data to an OLT in which the first virtual domain is located, alternatively, when the OLT transmits service data to a plurality of ONUs, the OLT may share the bandwidth of the optical fiber communication link and/or share the bandwidth of the wireless communication link, where the bandwidth refers to the bandwidth tolerance on the physical communication link, or the loading capacity on the physical communication link, for example, if the bandwidth of the optical fiber in the aforementioned subscriber home 1 is 100 mega (M), then, it can only go through a total of 100M services, and assuming that one handset needs 20M, it can transmit service data of 5 handsets; the multi-link coexistence may refer to that each ONU may communicate with each other, that the ONU and the OLT may communicate with each other, and that the communication between the ONU and the OLT may be direct communication or forwarding through one or more ONUs. Therefore, the service carried in a certain ONU is exactly which communication link to go to the OLT, or the configuration or other messages issued by the OLT to the ONU are exactly which communication link to go, which is very flexible and complicated. The service flow of the plurality of ONUs shares a link bandwidth, the service path is a scene of multi-link coexistence, the OLT can realize the service flow sharing by configuring the first virtual domain, and the specific configuration can be determined according to specific service requirements. In the practical application process, the OLT and the ONUs adopt optical fiber communication; and wireless communication is adopted among the plurality of ONUs. Wherein, the optical fiber communication can refer to communication through an optical fiber communication link; the wireless communication may refer to communication over a Wi-Fi communication link.
In some embodiments, the receiving the link monitoring packet sent by the first virtual domain may include:
receiving the link monitoring message directly sent by the first virtual domain, and/or receiving the link monitoring message forwarded by at least one second ONU; the second ONU is an ONU in the first virtual domain except the first ONU.
It should be noted that the Link monitoring packet may be sent to the first ONU by a Virtual routing Interface (VRF) in the first Virtual domain, and the specific packet may be encapsulated by an extended Link Detection Protocol (LDP) based on a Virtual Remote Control Protocol (VRCP), where the packet may at least carry: a destination Media Access Control (MAC) address, a source MAC address, a link cost of a communication link and/or identification information of a forwarding ONU, wherein the destination MAC is the MAC address of a target ONU; the source MAC address is the MAC address of the virtual routing interface of the virtual domain. The VRF may be automatically created for the first virtual domain when the OLT creates the first virtual domain.
Due to the coexistence of multiple links of the service paths, the link monitoring message sent by the first virtual domain to the first ONU may have multiple transmission paths, that is, the first ONU may receive multiple link monitoring messages, and the link monitoring message is directly sent by the first virtual domain and/or forwarded by at least one second ONU. The second ONU is any ONU in the first virtual domain except the first ONU. In the actual application process, the link monitoring message reaches the first ONU after being forwarded by the plurality of forwarding ONUs.
In the process of transmitting the link monitoring message, the ONUs receiving the link monitoring message analyze the link monitoring message to obtain a target MAC carried by the ONU, and determine whether the target MAC is the MAC of the ONUs, if so, receive the link monitoring message, generate a communication link table based on the link monitoring message, and feed back an acknowledgement message corresponding to the link monitoring message to the OLT, where the acknowledgement message has a format similar to that of the link monitoring message, and if not, the ONU carries the communication link table; and if not, forwarding to the next forwarding ONU to the communication link connected with the first ONU until forwarding to the first ONU.
Here, the second ONU is only for distinguishing the first ONU, and is for convenience of description and not for limiting the present invention. The communication link table is configured to store a link cost of a communication link associated with the first ONU and/or identification information of a forwarding ONU, where the communication link associated with the first ONU may be a communication link between a first virtual domain and the first ONU, where the communication link is capable of transmitting the link monitoring packet, that is, the communication link is: the link monitoring message sent by the first virtual domain can reach the communication link of the first ONU. The communication link table includes link cost of each communication link and/or identification information of the forwarding ONU.
Here, the link cost is an index defined to reflect the bandwidth usage of the communication link, and in general, the larger the bandwidth usage of the communication link, the higher the link cost. It will be appreciated that a wired transmission link is easier and less time consuming than a wireless transmission link, and that a wireless transmission link is more expensive for the same proportion of bandwidth usage.
In the practical application process, each ONU stores a link cost, a bandwidth usage amount, and a link type mapping table, so that the ONU knows the link cost of the communication link associated with itself. The mapping table is shown in table 1.
TABLE 1 mapping table
Figure 672390DEST_PATH_IMAGE001
It should be noted that the Wi-Fi link is the aforementioned wireless communication link; the optical fiber link is the wired communication link.
The identification information may be a code of the forwarding ONU in the first virtual domain, where the code is a number assigned to the forwarding ONU by the first virtual domain when the forwarding ONU accesses the first virtual domain.
In an actual application process, when the first virtual domain sends the link detection packet to the first ONU, the method further includes:
recording identification information of each forwarding ONU in a first communication link;
accumulating the sub-link cost of each segment of sub-communication link in the first communication link to obtain the link cost of the first communication link;
wherein the first communication link is any communication link between the first virtual domain and the first ONU; each section of the sub-communication link is a communication link from the first virtual domain to a forwarding ONU or a communication link between adjacent forwarding ONUs; the sub-link cost is the link cost corresponding to the corresponding sub-communication link.
It should be noted that, the adjacent forwarding ONU may refer to that when the link monitoring packet is directly forwarded from one ONU to another ONU, the two ONUs are called as adjacent forwarding ONUs. It is noted that the first ONU records the Link cost of each communication Link and the identification information of each forwarding ONU to form a Link forwarding table (LFB) containing Link forwarding paths and Link costs, that is, the aforementioned communication Link table. Wherein, the link cost may be the sum of sub-link costs of each sub-communication link, and the sub-communication link is a communication link between the first virtual domain and a forwarding ONU, or a communication link between adjacent forwarding ONUs; the sub-link cost is the total link cost of the corresponding sub-communication link.
For example, assuming that a first communication link needs to pass through three forwarding ONUs, when the link monitoring packet is transmitted through the first communication link to reach a first ONU, first identification information representing the first forwarding ONU, second identification information representing the second forwarding ONU, and third identification information representing the third forwarding ONU need to be recorded; further, the first communication link includes four sub-communication links, which are a first sub-communication link from the first virtual domain to the first forwarding ONU, a second sub-communication link from the first forwarding ONU to the second forwarding ONU, a third sub-communication link from the second forwarding ONU to the third forwarding ONU, and a fourth sub-communication link from the third forwarding ONU to the first ONU, on the basis, the sum of the sub-link costs in the four sub-communication links is accumulated to obtain the link cost of the first communication link. For example, if the sub-link costs of the four sub-communication links are respectively: 1. 5, 8, 3, the link cost of the first communication link is 17.
It should be understood that, when the link monitoring packet is forwarded through a crossing or branching link path, a previous ONU connected to the crossing or branching link path should be responsible for copying the link monitoring packet according to the number of crossing or branching link paths, and forwarding the link monitoring packet to each reachable communication link.
S102: under the condition that user traffic is received, selecting a shortest link for communication with an optical fiber line terminal (OLT) in the FTTR system from the communication links associated with the first ONU based on the communication link table, and realizing balanced transmission of the user traffic based on the shortest link; the shortest link is the communication link with the smallest link cost and/or the smallest number of forwarding ONUs in the communication links associated with the first ONU.
It is described herein that, the first ONU stores the communication link table, and after receiving a user service, selects a shortest link in communication with the OLT from the communication link table, and implements balanced transmission of the user service based on the shortest link, that is, implements balanced transmission of the user service by transmitting the user service based on the shortest link. It should be understood that the first virtual domain stores its own related communication link table, and each time user traffic is transmitted, the shortest path is selected, so as to achieve balance of traffic transmission.
In some embodiments, in the case that the first virtual domain periodically sends a link monitoring packet, the method further includes:
updating the communication link table periodically based on the link monitoring message;
selecting a new shortest link for communication with the OLT based on the updated communication link table in case of receiving a new user service; transmitting the new user traffic to the OLT based on the new shortest link.
It is described herein that the VRF in the first virtual domain may periodically send a link monitoring message to the first ONU, and since the service assumed by the ONU in the first virtual domain may be changed, if the same communication link table is used, the selected communication link may not be the shortest, that is, the selected communication link is not the optimal transmission path. Therefore, the communication link table needs to be updated periodically in order for the first ONU to select the optimal ONU when transmitting user traffic.
The embodiment of the invention provides a service balancing method, which comprises the following specific processes at a first ONU side: and generating a communication link table based on the link monitoring message when receiving the link monitoring message sent by the first virtual domain, then selecting a shortest link for communication with an optical fiber line terminal OLT in the FTTR system from the communication links associated with the first ONU based on the communication link table when receiving a user service, and realizing balanced transmission of the user service based on the shortest link. The service balancing method and the device provided by the embodiment of the invention manage the plurality of ONUs by setting the virtual domain in the FTTR system, so that the service flows of the plurality of ONUs share the link bandwidth, the service paths coexist in multilink, and further, the shortest link, that is, the optimal link, is selected from the communication link table by determining the communication link table associated with the ONUs to transmit the incoming user service, so that the service balanced transmission on each communication link associated with the ONUs is realized, the transmission resource allocation and use in the FTTR system are more efficient, and the requirements of high-capacity and high-real-time service scenes are met.
Based on the same inventive concept as that described above, fig. 3 is a schematic structural diagram of a service balancing apparatus according to an embodiment of the present invention, where the apparatus 30 is applied to a first optical network unit ONU, where the first ONU is one of multiple ONUs managed by a first virtual domain in an optical fiber to room FTTR system, and the first virtual domain is any one of at least one virtual domain included in the FTTR system; under the management of the first virtual domain, the service traffic of the ONUs shares a link bandwidth, and the service paths are multi-link coexistence, and the apparatus 30 includes: a determination unit 301 and a selection unit 302, wherein;
the determining unit 301 is configured to generate a communication link table based on the link monitoring packet when receiving the link monitoring packet sent by the first virtual domain; the communication link table is used for storing the link cost of the communication link and/or forwarding the identification information of the ONU; the communication link is a communication link between the first virtual domain and the first ONU; the link cost is used for reflecting the bandwidth use condition of the communication link; the forwarding ONU is used for forwarding the received link monitoring message to the first ONU; the forwarding ONU is an ONU in the plurality of ONUs except the first ONU;
the selecting unit 302 is configured to, in a case that a user traffic is received, select, based on the communication link table, a shortest link for communication with an optical fiber line terminal OLT in the FTTR system from among the communication links associated with the first ONU, and implement balanced transmission of the user traffic based on the shortest link; the shortest link is the communication link with the smallest link cost and/or the smallest number of forwarding ONUs in the communication links associated with the first ONU.
In some embodiments, the apparatus further comprises: a recording unit and an accumulating unit, wherein;
the recording unit is used for recording the identification information of each forwarding ONU in the first communication link;
the accumulation unit is configured to accumulate the sub-link cost of each segment of the sub-communication link in the first communication link to obtain the link cost of the first communication link;
wherein the first communication link is any communication link between the first virtual domain and the first ONU; each section of the sub-communication link is a communication link from the first virtual domain to a forwarding ONU or a communication link between adjacent forwarding ONUs; the sub-link cost is the link cost corresponding to the corresponding sub-communication link.
In some embodiments, the apparatus further comprises: an updating unit, configured to periodically update the communication link table based on the link monitoring packet when the first virtual domain periodically sends the link monitoring packet;
the selecting unit is further configured to select a new shortest link for communication with the OLT based on the updated communication link table when a new user service is received; transmitting the new user traffic to the OLT based on the new shortest link.
In some embodiments, the apparatus further comprises: a sending unit, configured to feed back, to the OLT, a confirmation message corresponding to the link monitoring message; the acknowledgement message includes the communication link table.
It should be noted that the management apparatus of the network terminal provided in the embodiment of the present invention and the management method provided in the foregoing embodiment of the present invention belong to the same inventive concept, and the meanings of the words appearing herein have been described in detail in the foregoing, and are not described again here.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the foregoing method embodiments, and the foregoing storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
An embodiment of the present invention further provides an electronic device, where the electronic device includes: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the above-described method embodiments stored in the memory when running the computer program.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention, where the electronic device 40 includes: the at least one processor 401, the memory 402, and optionally the electronic device 40 may further include at least one communication interface 403, and the various components in the electronic device 40 are coupled together by a bus system 404, it being understood that the bus system 404 is used to implement connection communication between these components. The bus system 404 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 404 in FIG. 4.
It will be appreciated that the memory 402 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced Synchronous Dynamic Random Access Memory), Synchronous linked Dynamic Random Access Memory (DRAM, Synchronous Link Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory). The memory 402 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 402 in embodiments of the present invention is used to store various types of data to support the operation of the electronic device 40. Examples of such data include: any computer program for operating on the electronic device 40, such as implementations determining that a new shortest link for communication with the OLT is selected based on the updated communication link table in case a new user traffic is received, etc., may be embodied in the memory 402 for implementing the method of an embodiment of the present invention.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium having a memory and a processor reading the information in the memory and combining the hardware to perform the steps of the method.
In an exemplary embodiment, the electronic Device 40 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components for performing the above-described methods.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A service balancing method is applied to a first Optical Network Unit (ONU), wherein the first ONU is one of a plurality of ONUs managed by a first virtual domain in a fiber to the home (FTTR) system, and the first virtual domain is any one of at least one virtual domain contained in the FTTR system; under the management of the first virtual domain, the service flows of the ONUs share link bandwidth, and service paths coexist in multiple links; the method comprises the following steps:
under the condition of receiving a link monitoring message sent by the first virtual domain, generating a communication link table based on the link monitoring message; the communication link table is used for storing link cost of a communication link associated with the first ONU and/or identification information of a forwarding ONU; the communication link is a communication link between the first virtual domain and the first ONU; the link cost is used for reflecting the bandwidth use condition of the communication link; the forwarding ONU is used for forwarding the received link monitoring message to the first ONU; the forwarding ONU is an ONU in the plurality of ONUs except the first ONU;
under the condition that user traffic is received, selecting a shortest link for communication with an optical fiber line terminal (OLT) in the FTTR system from the communication links associated with the first ONU based on the communication link table, and realizing balanced transmission of the user traffic based on the shortest link; the shortest link is the communication link with the smallest link cost and/or the smallest number of forwarding ONUs in the communication links associated with the first ONU.
2. The method according to claim 1, wherein the receiving the link monitoring packet sent by the first virtual domain comprises:
receiving the link monitoring message directly sent by the first virtual domain, and/or receiving the link monitoring message forwarded by at least one second ONU; the second ONU is an ONU in the first virtual domain except the first ONU.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and the link monitoring message reaches the first ONU after being forwarded by the plurality of forwarding ONUs.
4. The method of claim 3, further comprising:
recording identification information of each forwarding ONU in a first communication link;
accumulating the sub-link cost of each segment of sub-communication link in the first communication link to obtain the link cost of the first communication link;
wherein the first communication link is any communication link between the first virtual domain and the first ONU; each section of the sub-communication link is a communication link from the first virtual domain to a forwarding ONU or a communication link between adjacent forwarding ONUs; the sub-link cost is the link cost corresponding to the corresponding sub-communication link.
5. The method according to claim 1, wherein in case that the first virtual domain periodically sends a link monitoring packet, the method further comprises:
updating the communication link table periodically based on the link monitoring message;
selecting a new shortest link for communication with the OLT based on the updated communication link table in case of receiving a new user service; transmitting the new user traffic to the OLT based on the new shortest link.
6. The method of claim 1, further comprising:
feeding back a confirmation message corresponding to the link monitoring message to the OLT; the acknowledgement message includes the communication link table.
7. The method of claim 1, wherein the OLT communicates with the plurality of ONUs using fiber optics; and wireless communication is adopted among the plurality of ONUs.
8. A service balancing device is applied to a first Optical Network Unit (ONU), wherein the first ONU is one of a plurality of ONUs managed by a first virtual domain in a fiber to the home (FTTR) system, and the first virtual domain is any one of at least one virtual domain contained in the FTTR system; under the management of the first virtual domain, the service traffic of the ONUs shares link bandwidth, and the service paths coexist in multiple links, and the apparatus includes: a determination unit and a selection unit, wherein;
the determining unit is configured to generate a communication link table based on the link monitoring packet when receiving the link monitoring packet sent by the first virtual domain; the communication link table is used for storing the link cost of the communication link and/or forwarding the identification information of the ONU; the communication link is a communication link between the first virtual domain and the first ONU; the link cost is used for reflecting the bandwidth use condition of the communication link; the forwarding ONU is used for forwarding the received link monitoring message to the first ONU; the forwarding ONU is an ONU in the plurality of ONUs except the first ONU;
the selecting unit is configured to, in a case that a user service is received, select, based on the communication link table, a shortest link for communication with an optical fiber line terminal OLT in the FTTR system from among the communication links associated with the first ONU, and implement balanced transmission of the user service based on the shortest link; the shortest link is the communication link with the smallest link cost and/or the smallest number of forwarding ONUs in the communication links associated with the first ONU.
9. A computer-readable storage medium, characterized in that the readable storage medium has stored thereon a computer program; the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 7.
10. An electronic device, characterized in that the electronic device comprises: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 7 when the computer program is executed.
CN202110879779.9A 2021-08-02 2021-08-02 Service balancing method and device, electronic equipment and storage medium Active CN113315717B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110879779.9A CN113315717B (en) 2021-08-02 2021-08-02 Service balancing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110879779.9A CN113315717B (en) 2021-08-02 2021-08-02 Service balancing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113315717A CN113315717A (en) 2021-08-27
CN113315717B true CN113315717B (en) 2021-09-28

Family

ID=77382445

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110879779.9A Active CN113315717B (en) 2021-08-02 2021-08-02 Service balancing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113315717B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115942158A (en) * 2020-08-31 2023-04-07 华为技术有限公司 Network configuration method and related equipment
CN113453099B (en) * 2021-09-01 2021-12-24 武汉长光科技有限公司 Multicast configuration method, system, device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014324A (en) * 2021-05-25 2021-06-22 武汉长光科技有限公司 Networking method, device, equipment, system and storage medium
CN113115140A (en) * 2021-06-11 2021-07-13 武汉长光科技有限公司 Communication method, device, equipment, system and storage medium
CN113163277A (en) * 2021-06-23 2021-07-23 武汉长光科技有限公司 Optical network unit bandwidth management method and device, electronic equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5835762B2 (en) * 2013-01-24 2015-12-24 日本電信電話株式会社 Optical subscriber system and dynamic wavelength band allocation method for optical subscriber system
US9537598B2 (en) * 2014-04-11 2017-01-03 Nec Corporation Architecture of open-flow based software-defined optical label swapping

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113014324A (en) * 2021-05-25 2021-06-22 武汉长光科技有限公司 Networking method, device, equipment, system and storage medium
CN113115140A (en) * 2021-06-11 2021-07-13 武汉长光科技有限公司 Communication method, device, equipment, system and storage medium
CN113163277A (en) * 2021-06-23 2021-07-23 武汉长光科技有限公司 Optical network unit bandwidth management method and device, electronic equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Energy Efficient Optical-Wireless Residential Access/In-House Networks》;Leonid G.Kazovsky,et.al;《IEEE》;20111231;全文 *
《广电FTTH EPON互联互通研究》;郑直等;《广播与电视技术》;20161231;全文 *
光无线混合宽带接入网的现状和发展;马姗姗等;《光通信技术》;20111130(第11期);全文 *

Also Published As

Publication number Publication date
CN113315717A (en) 2021-08-27

Similar Documents

Publication Publication Date Title
US8718061B2 (en) Data center network system and packet forwarding method thereof
CN106790104B (en) IP communication and FC-AE-1553 communication means between multi-protocols emerging system, node
CN102668472B (en) The method of the drive-type multicast service distribution in link aggregation group
CN113315717B (en) Service balancing method and device, electronic equipment and storage medium
MX2011006536A (en) Network node and method for controlling resources in a communication network.
CN102404418B (en) Method, device and system for distributing IP (internet protocol) address for user terminal
CN102291465B (en) Load balancing method, device and system
CN103795623A (en) Method and device for realizing traffic interflow between virtual devices
CN113115140B (en) Communication method, device, equipment, system and storage medium
CN105763385A (en) Flow scheduling method and apparatus
JP2021526331A (en) Network topology generation method and equipment
EP4207794A1 (en) Data frame sending method and network device
CN103368847A (en) Broadband convergence communication method and router
CN109286564B (en) Message forwarding method and device
CN106063169B (en) A kind of data processing method and device
CN109728968B (en) Method, related equipment and system for obtaining target transmission path
CN111147962B (en) Method and device for configuring broadband network
CN109688071A (en) A kind of flexible Ethernet message forwarding method and device
CN110324265B (en) Traffic distribution method, routing method, equipment and network system
CN112887117A (en) Method, device and medium for accessing and configuring network slice
WO2017167076A1 (en) Device management method and apparatus
US11416299B2 (en) Method and resource scheduler for enabling a computing unit to map remote memory resources based on optical wavelength
CN113163276A (en) Method, device and system for issuing routing information
CN114221895A (en) Data transmission method, device and network equipment
CN113285780B (en) Method, device and system for configuring transmission pipeline

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