CN108882064B - Port data packet sending method and system based on GPON system - Google Patents

Port data packet sending method and system based on GPON system Download PDF

Info

Publication number
CN108882064B
CN108882064B CN201810665611.6A CN201810665611A CN108882064B CN 108882064 B CN108882064 B CN 108882064B CN 201810665611 A CN201810665611 A CN 201810665611A CN 108882064 B CN108882064 B CN 108882064B
Authority
CN
China
Prior art keywords
port
data
sending
data packet
buffer area
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.)
Expired - Fee Related
Application number
CN201810665611.6A
Other languages
Chinese (zh)
Other versions
CN108882064A (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.)
Weifang University
Original Assignee
Weifang University
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 Weifang University filed Critical Weifang University
Priority to CN201810665611.6A priority Critical patent/CN108882064B/en
Publication of CN108882064A publication Critical patent/CN108882064A/en
Application granted granted Critical
Publication of CN108882064B publication Critical patent/CN108882064B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0005Switch and router aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0073Provisions for forwarding or routing, e.g. lookup tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0081Fault tolerance; Redundancy; Recovery; Reconfigurability

Landscapes

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

Abstract

The invention relates to the technical field of Ethernet passive optical networks, and provides a port data packet sending method and a system based on a GPON system, wherein the method comprises the following steps: receiving data packets sent by each optical network unit ONU, and temporarily storing the received data packets in a pre-configured receiving buffer area; acquiring the relationship among ports, a target MAC and link directions, and transferring the data packets belonging to the same direction in the receiving buffer zone into the corresponding same-direction buffer zone; analyzing the data packet in the equidirectional buffer area to generate a port data transmission pointer linked list; and sending the data packets in the equidirectional buffer area to the corresponding port buffer area according to the generated port data sending pointer linked list, thereby realizing loop-free and load-balanced transmission of the data packets to multiple ports by the links, and when a certain link fails, other links provide backup, thereby improving the sending reliability and sending efficiency of the data message.

Description

Port data packet sending method and system based on GPON system
Technical Field
The invention belongs to the technical field of Ethernet passive optical networks, and particularly relates to a port data packet sending method and system based on a GPON system.
Background
An ethernet passive optical network (GPON) technology is an ethernet technology and point-to-multipoint passive optical network access technology, integrates the characteristics of easy maintenance, low cost, high efficiency of a PON network and the like of the ethernet technology, and is an optimal way for realizing an optical fiber access network.
With the convergence of three networks and the acceleration of the fiber-to-the-home process, the GPON system is widely used, the requirements of broadband internet access, video on demand, network games and the like are increasing day by day, and the number of users is huge. On the premise of certain GPON system resources, the content such as video requested by a user is delayed, the online game is blocked, and the user experience is poor. Meanwhile, when the link fails, interruption occurs, which affects the use of the user.
Disclosure of Invention
The invention aims to provide a port data packet sending method based on a GPON system, and aims to solve the problems that in the prior art, on the premise that GPON system resources are fixed, contents such as videos requested by users are delayed, network games are blocked, and user experience is poor. Meanwhile, when the link fails, interruption occurs, which affects the use of the user.
The invention is realized in this way, a port data packet sending method based on GPON system, the method includes the following steps:
receiving data packets sent by each optical network unit ONU, and temporarily storing the received data packets in a pre-configured receiving buffer area;
acquiring the relationship among ports, a target MAC and link directions, and transferring the data packets belonging to the same direction in the receiving buffer zone into the corresponding same-direction buffer zone;
analyzing an input command and a protocol to form a rule, analyzing a data packet in the equidirectional buffer area to generate a port data transmission pointer linked list, wherein the port data transmission pointer linked list comprises a data frame head address, a data frame length, a relation between a next data frame head address and a transmission port, and the rule comprises a relation between a port number, an aggregation group number, an instance number, a VLAN number, a QINQ number and a link direction;
sending the data packet in the equidirectional buffer area to the corresponding port buffer area according to the generated port data sending pointer linked list;
and load balancing and mutual backup strategies are adopted among the aggregation groups and among the ports in the aggregation groups.
As an improvement, the method further comprises the steps of:
monitoring the idle storage capacity of each port buffer area in the process of sending data by the port buffer areas;
and analyzing the data packet transmitted from the receiving buffer area to the equidirectional buffer area to generate a port data transmission pointer linked list.
As an improvement, the method further comprises the steps of:
and sending the data packet to a corresponding port buffer area according to the priority of the residual storage capacity and the port data sending pointer linked list.
As an improved scheme, the step of parsing the data packet in the equidirectional buffer specifically includes the following steps:
analyzing the input command and the protocol to form a rule, acquiring an instance number corresponding to each data packet, and determining an aggregation group corresponding to each instance and used for sending the data packet;
and determining a corresponding port for sending the data packet in the aggregation group according to the flow load balancing rule.
As an improved scheme, the step of obtaining the relationship between the port, the destination MAC and the link direction specifically includes the following steps:
and according to the pre-established corresponding relation between the port and the link direction, carrying out target MAC analysis on the data packet in the receiving buffer area to obtain the relation among the port, the target MAC and the link direction.
Another object of the present invention is to provide a port packet transmission system based on a GPON system, the system comprising:
the data packet receiving module is used for receiving data packets sent by each optical network unit ONU;
the temporary storage module is used for temporarily storing the received data packet in a pre-configured receiving buffer area;
the first acquisition module is used for acquiring the relationship among the port, the destination MAC and the link direction;
the unloading module is used for unloading the data packets belonging to the same direction in the receiving buffer zone into the corresponding same-direction buffer zone;
the data packet analysis module is used for analyzing an input command and a protocol to form a rule and analyzing the data packet in the equidirectional buffer zone, wherein the rule comprises a relationship among a port number, an aggregation group number, an instance number, a VLAN number, a QINQ number and a link direction;
the pointer linked list generating module is used for generating a port data transmitting pointer linked list according to the analysis of the data packets in the equidirectional buffer area, wherein the port data transmitting pointer linked list comprises the relation among a data frame head address, a data frame length, a next data frame head address and a transmitting port;
the first data packet sending module is used for sending the data packets in the equidirectional buffer area to the corresponding port buffer area according to the generated port data sending pointer linked list;
and load balancing and mutual backup strategies are adopted among the aggregation groups and among the ports in the aggregation groups.
As an improvement, the system further comprises:
the idle storage capacity monitoring module is used for monitoring the idle storage capacity of each port buffer area in the process of sending data by the port buffer areas;
and the return execution module is used for analyzing the data packet transmitted from the receiving buffer area to the equidirectional buffer area and generating a port data transmission pointer linked list.
As an improvement, the system further comprises:
and the second data packet sending module is used for sending the data packet to the corresponding port buffer area according to the size priority of the residual storage capacity and the port data sending pointer linked list.
As an improved scheme, the packet parsing module specifically includes:
the second acquisition module is used for analyzing the input command and the protocol to form a rule and acquiring an instance number corresponding to each data packet;
the aggregation group determining module is used for determining an aggregation group which is corresponding to each instance and used for sending the data packet;
and the port determining module is used for determining a corresponding port for sending the data packet in the aggregation group according to the flow load balancing rule.
As an improved scheme, the first obtaining module specifically includes:
the pre-establishing module is used for pre-establishing a corresponding relation between the ports and the link directions;
and the destination MAC address analysis module is used for carrying out destination MAC analysis on the data packet in the receiving buffer area to obtain the relationship among the port, the destination MAC and the link direction.
In the embodiment of the invention, the data packets sent by each ONU are received and the received data packets are temporarily stored in a pre-configured receiving buffer area; acquiring the relationship among ports, a target MAC and link directions, and transferring the data packets belonging to the same direction in the receiving buffer zone into the corresponding same-direction buffer zone; analyzing the data packet in the equidirectional buffer area to generate a port data transmission pointer linked list; and sending the data packets in the equidirectional buffer area to the corresponding port buffer area according to the generated port data sending pointer linked list, thereby realizing the loop-free and load-balanced sending of the data packets to multiple ports of the link, and when a certain link fails, other links provide backup, thereby improving the sending reliability and sending efficiency of data messages, solving the problem of video content blocking and pause phenomenon, and providing better service for users.
Drawings
Fig. 1 is a flowchart of an implementation of a port packet sending method based on a GPON system according to the present invention;
fig. 2 is a schematic diagram of a link structure of an OLT provided in the present invention;
FIG. 3 is a schematic diagram of packet transmission provided by the present invention;
FIG. 4 is a flow chart of an implementation of parsing the data packet in the co-directional buffer according to the present invention;
fig. 5 is a block diagram of a port packet transmission system based on the GPON system according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 shows a flowchart of an implementation of a port packet sending method based on a GPON system, which specifically includes the following steps:
in step S101, a data packet sent by each ONU is received, and the received data packet is temporarily stored in a pre-configured receiving buffer.
In step S102, according to the network networking architecture and the source MAC address learning, the relationship among the port, the destination MAC, and the link direction is obtained, and the packets belonging to the same direction in the receiving buffer are transferred to the corresponding same-direction buffer.
In this step, the equidirectional buffer can be set according to actual situations, and is generally divided into two directions or four directions or eight directions according to service contents, and the description is given by taking two directions, that is, two equidirectional buffers exist as an example.
The method comprises the steps of storing received data packets into a receiving buffer area, establishing a corresponding relation among an aggregation group, a port and a link direction according to an aggregation command input in a page, analyzing a destination MAC address of the received data packets, finding the relation among the MAC destination address, the port, the aggregation group and the link direction, and then storing the data packets in the same direction into a homodromous buffer area;
the aggregation command may employ the following commands:
Interface interface-number
Port-group port-group –number
Interface aggregate-port port-number
Aggregate-port load-balance {dst-mac ︱src-mac︱ip}。
in step S103, a rule is formed by analyzing the input command and the protocol, and the header information of the data frame and the header information of the IP datagram of the data packet in the equidirectional buffer are analyzed to generate a port data transmission pointer linked list, where the port data transmission pointer linked list includes a data frame head address, a data frame length, a next data frame head address, and a transmission port.
In the step, in the equidirectional buffer area, taking out the MAC frame head of the data packet, analyzing the VLAN, the double-layer VLAN and the source MAC address in the MAC frame head of the data packet in the MAC controller according to the corresponding relation among the VLAN, the double-layer VLAN and the spanning tree example, taking out the IP frame head of the data packet, analyzing the source IP address and the destination IP address of the data frame head in a CPU, aggregating the load balancing mode in the group according to the corresponding relation among the VLAN, the double-layer VLAN and the multiple spanning tree example, establishing a port data transmission pointer chain table, and transmitting the data packet in the equidirectional buffer area to the port buffer area.
The same-direction buffer area adopts a dual-port RAM structure, the capacity is controllable, data are transmitted to the port buffer area in batches according to a same-direction data transmission pointer linked list, and the port data transmission pointer linked list structure is formed by the relation among a data frame head address, the length of a data frame, a next frame data frame head address and a transmission port.
In step S104, according to the generated port data transmission pointer linked list, transmitting the data packet in the equidirectional buffer area to the corresponding port buffer area;
in this embodiment, load balancing and mutual backup strategies are adopted between aggregation groups and between ports (the number of ports may be two or more) in an aggregation group, where, as shown in fig. 2, a plurality of link directions exist between each OLT device and a corresponding switch, each link direction has a different aggregation group, and a plurality of ports are arranged in an aggregation group.
In this step, the port buffers are sent sequentially onto the link in a FIFO structure.
Referring to fig. 2 and fig. 3, fig. 2 is a link structure of the OLT, and fig. 3 is a schematic diagram of packet transmission, where:
in fig. 2, each OLT device corresponds to a plurality of OUNs, and each OLT device is connected with two switches for service content, that is, a switch 1 and a switch 2, where each switch corresponds to a link direction, so that, on the schematic diagram shown in fig. 2, there are two link directions (direction 1 and direction 2), and each link direction is provided with two aggregation groups (denoted by a and B, respectively), that is, an aggregation group 1 and an aggregation group 2, and each aggregation group is provided with two ports;
fig. 3 shows the correspondence of the receive buffer, the syntropic buffer, and the port buffer, where:
before the above step S101 is executed, a corresponding receiving buffer, a homodromous buffer and a port buffer are preset, and fig. 3 shows a case of two homodromous buffers and four ports, where the first two ports belong to an aggregation group a and the last two ports belong to an aggregation group B.
In this embodiment, during the process of sending data in the port buffer, the idle storage capacity of each port buffer is monitored;
and analyzing the data packets in the equidirectional buffer area to generate a port data sending pointer linked list and the subsequent steps.
After a data packet newly stored in the equidirectional buffer area is analyzed and a new port data transmission pointer linked list is established, when the data packet is transmitted to the port buffer area from the equidirectional buffer area, the data packet is transmitted according to the priority of the residual storage capacity and the port data transmission pointer linked list, namely the higher the priority of the port buffer area with the larger residual storage capacity is, and the data is transmitted by combining the port data transmission pointer linked list according to the sequence; in this embodiment, the structure of the port data transmission pointer linked list is as follows:
first address frame length next frame first address port
A data transmission pointer linked list of port number1, a data transmission pointer linked list of port number2, and a data transmission pointer linked list of port number n are formed.
As shown in fig. 4, the step of parsing the data packet in the equidirectional buffer specifically includes the following steps:
in step S201, a rule is formed by analyzing the input command and the protocol, and an instance number corresponding to each packet is obtained, and an aggregation group for sending the packet corresponding to each instance is determined, where the rule includes a relationship between a port number, an aggregation group number, an instance number, a VLAN number, a QINQ number, and a link direction.
In this step, the rule is a pre-established rule, and then in the actual packet parsing process, the rule is used to parse the packet to obtain the instance number to which the packet belongs specifically, and to know that the packet is sent through the aggregation group, where this case is implemented in the case of two aggregation groups;
the specific implementation process is as follows: the multiple spanning trees are generated using a priority vector { CIST root bridge ID, CIST external root path cost, CIST domain root BID, CIST internal path cost, CIST designated bridge BID, CIST designated aggregation group PID, CIST received aggregation group PID } of CIST2 and a priority vector { MSTI domain root BID, MSTI internal path cost, MSTI designated bridge BID, MSTI designated aggregation group PID, MSTI received aggregation lease PID } of MSTI1 instance.
In step S202, according to the traffic load balancing rule, a corresponding port for transmitting the data packet is determined in the aggregation group.
In this embodiment, after determining that the data packet is sent through the aggregation group, it is necessary to determine that the data packet is sent through the port in the aggregation group, and the implementation of the method is according to the traffic load balancing rule, where the traffic load balancing rule specifically is:
(1) source IP address and VLAN operation;
(2) calculating a destination IP address and a VLAN;
(3) performing different VLAN operation on a source IP address and a destination IP address;
(4) source MAC address and VLAN operation;
(5) calculating a destination MAC address and a VLAN;
(6) performing VLAN operation on a source MAC address and a destination MAC address;
one of the operation rules is selected, and the HASH algorithm is used to select the transmission port of the aggregation link, which is not described herein again, but is not intended to limit the present invention.
As another specific implementation of the present invention, for a transmission link without a component of the aggregation component, the determination of the example and the determination of the link can be implemented in the following manner: the multiple spanning tree is generated using a priority vector { CIST root bridge ID, CIST external root path cost, CIST domain root BID, CIST internal path cost, CIST designated bridge BID, CIST designated port PID, CIST receive port PID } of CIST1 and a priority vector { MSTI domain root BID, MSTI internal path cost, MSTI designated bridge BID, MSTI designated port PID, MSTI receive port PID } of MSTI1 instance.
For spanning tree commands with aggregation flags and without aggregation flags, the following procedures can be adopted:
Spanning-tree
Spanning-tree mode mstp
Spanning-tree mode mstp instance instance-number VLAN vlan-number
Spanning-tree mode mstp instance instance-number port-priority priority
Spanning-tree mode mstp instance instance-number LAG-priority priority
the above description is given for one implementation and is not intended to limit the present invention.
In the embodiment of the invention, when the links in the aggregation group work normally, the load balance is realized through the HASH algorithm, and when the links break down, the links back up each other and continue to provide service for users; when the links among the aggregation groups are normal, load balance is realized through the examples, and when the links fail, the links back up each other and continue to provide service for users, so that double backup of the links is realized.
For convenience of explanation, the following specific implementation examples are given in conjunction with fig. 2 and 3:
according to the networking architecture, ports 1-4 of an OLT (optical line terminal) of the GPON system are connected with a switch 1 and defined as a link direction 1, and ports 5-8 of the OLT of the GPON system are connected with a switch 2 and defined as a link direction 2. Port 1 and port 2 are aggregated, defined as aggregation group 1; port 3 and port 4 are aggregated, defined as aggregation group 2; port 5 and port 6 are aggregated, defined as aggregation group 3; port 7 and port 8 are aggregated and defined as aggregation group 4.
According to the aggregation command, defining the port 1 and the port 2 as an aggregation group 1; let port 3 and port 4 define aggregation group 2. The OLT and the switch 1 of the GPON system run an aggregation protocol, so that the port 1, the port 2, the port 3, the port 4 of the OLT and the corresponding port of the switch 1 are aggregated respectively.
Load balancing is carried out between the port 1 and the port 2, and an Aggregate-port load-balance { ip } command is input
And carrying out HASH operation on the IP address and the VLAN number of the terminal, and selecting a port to transmit data.
Starting a Spanning tree protocol, namely a Spanning tree-tree protocol, running a multiple Spanning tree protocol by a Spanning tree-tree model mstp, mapping VLAN1-VLAN500 to example 1, mapping Spanning tree-tree model mstp entity instance-2 VLAN VLAN-number VLAN501-VLAN1000, and mapping V LAN501-VLAN1000 to example 2; a span-tree mstp instance instance-number1 LAG1-priority priority 16, a span-tree mstp instance-number1 LAG2-priority priority 4096, a span-tree mstp instance-number2 LAG1-priority priority 4096, a span-tree mstp instance-number2 LAG2-priority 16,
example 1 has a priority of 16 in aggregation group 1, example 1 has a priority of 4096 in aggregation group 2, and example 1 has a priority of 1 in aggregation group.
The priority of example 2 in aggregation group 1 is 4096, the priority of example 2 in aggregation group 2 is 16, and the priority of example 2 in aggregation group 2 is high.
After the multi-instance spanning tree protocol is operated, priority vector comparison is carried out by using a priority vector { CIST root bridge ID, CIST external root path cost, CIST domain root BID, CIST internal path cost, CIST designated bridge BID, CIST designated aggregation group PID, CIST receiving aggregation group PID } of the CIST2 and a priority vector { MSTI domain root BID, MSTI internal path cost, MSTI designated bridge BID, MSTI designated aggregation group PID, MSTI receiving aggregation lease PID }, of the MSTI1 instance. Relationships between NNI port numbers, aggregation group numbers, spanning tree instance numbers, VLAN numbers, QINQ numbers, link directions are established. Under the condition that the link is normal, the data packet corresponding to the example 1 is sent through the aggregation group 1, and the data packet corresponding to the example 2 is sent through the aggregation group 2. The data packet realizes load sharing between the aggregation groups 1 and 2, the port 1 and the port 2 in the aggregation group realize load sharing, and the port 3 and the port 4 realize load sharing.
When the OLT receives the data packet, the data packet is temporarily stored in a receiving buffer area, the destination MAC address of the data packet is analyzed, the corresponding relation between the destination MAC address and the link direction is found, and the data packet is stored in a same-direction buffer area. The VLAN information of the header of the data frame of the packet of the syntropy buffer is analyzed, for example, the VLAN number of the current packet is 200. VLAN number 200 belongs to example 1, and the current packet should be sent from aggregation group 1, and then the IP address information and VLAN number of the current packet are analyzed to perform HASH operation, and the port to be sent is selected. And then forming a port transmission pointer linked list of the current data packet. After the data packets stored in the equidirectional buffer area are analyzed in sequence, a transmission pointer linked list of the ports 1-4 is formed, then the data packets in the equidirectional buffer area are transmitted to the port buffer area, and the data packets are transmitted to the link by the port buffer area. The capacity of the cocurrent buffer area is controllable, and the quantity of the transmitted data packets is determined according to the free capacity of the port buffer area. The data packet in the equidirectional buffer area only analyzes the information of the head of the data frame and the information of the head of the IP datagram to form a port sending pointer linked list for sending batch data, so that the data sending is faster.
When the link of the aggregation group 1 fails, the data packet corresponding to the instance 1 and the data packet of the instance 2 are both sent through the aggregation group 2, so that the aggregation group 2 is a hot backup of the aggregation group 1 and is a backup of each other.
When the port 1 link in the aggregation group 1 fails, all the data packets of the aggregation group 1 are sent from the port 2. Port 1 and port 2 are implemented as backups of each other.
When the link is normal, the structure realizes load sharing by sending data packets in the aggregation group and between the aggregation groups, and when the link fails, the aggregation group and the aggregation groups are mutually backed up, so that the structure is a hot dual-backup structure and is more reliable.
Fig. 5 is a block diagram illustrating a port packet transmission system based on a GPON system according to the present invention, and for convenience of description, only the parts related to the embodiment of the present invention are shown in the diagram.
The port data packet sending system based on the GPON system comprises:
a data packet receiving module 11, configured to receive a data packet sent by each ONU;
a temporary storage module 12, configured to temporarily store a received data packet in a pre-configured receiving buffer;
a first obtaining module 13, configured to obtain a relationship among a port, a destination MAC, and a link direction;
a dump module 14, configured to dump data packets belonging to the same direction in the receiving buffer into a corresponding same-direction buffer;
a data packet analyzing module 15, configured to analyze the data packet in the equidirectional buffer;
a pointer linked list generating module 16, configured to generate a port data transmission pointer linked list according to analysis of a data packet in the equidirectional buffer, where the port data transmission pointer linked list includes a relationship between a data frame head address, a data frame length, a next data frame head address, and a transmission port;
a first data packet sending module 17, configured to send the data packet in the equidirectional buffer to a corresponding port buffer according to the generated port data sending pointer linked list;
load balancing and mutual backup strategies are adopted between two ports in the aggregation group and between two ports in the aggregation group.
On the basis of this embodiment, the port packet sending system based on the GPON system further includes:
an idle storage capacity monitoring module 18, configured to monitor an idle storage capacity of each port buffer in a process of sending data in the port buffer;
and a return execution module 19, configured to execute the step of analyzing the data packet in the equidirectional buffer from the receive buffer to the data packet in the equidirectional buffer, and generate a port data transmission pointer linked list and subsequent steps.
The second data packet sending module 20 is configured to send the data packet to the corresponding port buffer according to the size priority of the remaining storage capacity and the port data sending pointer linked list.
In the embodiment of the present invention, the data packet parsing module 15 specifically includes:
a second obtaining module 21, configured to obtain an instance number corresponding to each data packet according to a pre-established spanning tree rule, where the spanning tree rule includes a relationship between a port number, an aggregation group number, an instance number, a VLAN number, a QINQ number, and a link direction;
an aggregation group determining module 22, configured to determine an aggregation group for sending the data packet, where the aggregation group corresponds to each instance;
and a port determining module 23, configured to determine, according to the traffic load balancing rule, a corresponding port for sending the data packet in the aggregation group.
In this embodiment of the present invention, the first obtaining module 13 specifically includes:
a pre-establishing module 24, configured to pre-establish a correspondence between ports and link directions;
and the destination MAC address analyzing module 25 is configured to perform destination MAC analysis on the data packet in the receiving buffer to obtain a relationship between the port, the destination MAC, and the link direction.
The functions of the modules are described in the above embodiments, and are not described herein again.
In the embodiment of the invention, the data packets sent by each ONU are received and the received data packets are temporarily stored in a pre-configured receiving buffer area; acquiring the relationship among ports, a target MAC and link directions, and transferring the data packets belonging to the same direction in the receiving buffer zone into the corresponding same-direction buffer zone; analyzing the data packet in the equidirectional buffer area to generate a port data transmission pointer linked list; and sending the data packets in the equidirectional buffer area to the corresponding port buffer area according to the generated port data sending pointer linked list, thereby realizing the loop-free and load-balanced sending of the data packets to multiple ports of the link, and when a certain link fails, other links provide backup, thereby improving the sending reliability and sending efficiency of data messages, solving the problem of video content blocking and pause phenomenon, and providing better service for users.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (10)

1. A port data packet sending method based on a GPON system is characterized by comprising the following steps:
receiving data packets sent by each optical network unit ONU, and temporarily storing the received data packets in a pre-configured receiving buffer area;
acquiring the relationship among ports, a target MAC and link directions, and transferring the data packets belonging to the same direction in the receiving buffer zone into the corresponding same-direction buffer zone;
analyzing an input command and a protocol to form a rule, analyzing a data packet in the equidirectional buffer area to generate a port data transmission pointer linked list, wherein the port data transmission pointer linked list comprises a data frame head address, a data frame length, a relation between a next data frame head address and a transmission port, and the rule comprises a relation between a port number, an aggregation group number, an instance number, a VLAN number, a QINQ number and a link direction;
sending the data packet in the equidirectional buffer area to the corresponding port buffer area according to the generated port data sending pointer linked list;
and load balancing and mutual backup strategies are adopted among the aggregation groups and among the ports in the aggregation groups.
2. The method for sending port data packets based on the GPON system of claim 1, further comprising the steps of:
monitoring the idle storage capacity of each port buffer area in the process of sending data by the port buffer areas;
and analyzing the data packet transmitted from the receiving buffer area to the equidirectional buffer area to generate a port data transmission pointer linked list.
3. The method for sending the port packet based on the GPON system of claim 2, wherein the method further comprises the following steps:
and sending the data packet to a corresponding port buffer area according to the priority of the residual storage capacity and the port data sending pointer linked list.
4. The method for sending the port packet based on the GPON system of claim 3, wherein the step of parsing the packet in the co-directional buffer specifically comprises the following steps:
analyzing the input command and the protocol to form a rule, acquiring an instance number corresponding to each data packet, and determining an aggregation group corresponding to each instance and used for sending the data packet;
and determining a corresponding port for sending the data packet in the aggregation group according to the flow load balancing rule.
5. The method for sending the port packet based on the GPON system as claimed in claim 4, wherein the step of obtaining the relationship among the port, the destination MAC and the link direction specifically includes the steps of:
and according to the pre-established corresponding relation between the port and the link direction, carrying out target MAC analysis on the data packet in the receiving buffer area to obtain the relation among the port, the target MAC and the link direction.
6. A port packet transmission system based on a GPON system, the system comprising:
the data packet receiving module is used for receiving data packets sent by each optical network unit ONU;
the temporary storage module is used for temporarily storing the received data packet in a pre-configured receiving buffer area;
the first acquisition module is used for acquiring the relationship among the port, the destination MAC and the link direction;
the unloading module is used for unloading the data packets belonging to the same direction in the receiving buffer zone into the corresponding same-direction buffer zone;
the data packet analysis module is used for analyzing an input command and a protocol to form a rule and analyzing the data packet in the equidirectional buffer zone, wherein the rule comprises a relationship among a port number, an aggregation group number, an instance number, a VLAN number, a QINQ number and a link direction;
the pointer linked list generating module is used for generating a port data transmitting pointer linked list according to the analysis of the data packets in the equidirectional buffer area, wherein the port data transmitting pointer linked list comprises the relation among a data frame head address, a data frame length, a next data frame head address and a transmitting port;
the first data packet sending module is used for sending the data packets in the equidirectional buffer area to the corresponding port buffer area according to the generated port data sending pointer linked list;
and load balancing and mutual backup strategies are adopted among the aggregation groups and among the ports in the aggregation groups.
7. The GPON system based port packet forwarding system of claim 6, wherein the system further comprises:
the idle storage capacity monitoring module is used for monitoring the idle storage capacity of each port buffer area in the process of sending data by the port buffer areas;
and the return execution module is used for analyzing the data packet transmitted from the receiving buffer area to the equidirectional buffer area and generating a port data transmission pointer linked list.
8. The GPON system based port packet forwarding system of claim 7, further comprising:
and the second data packet sending module is used for sending the data packet to the corresponding port buffer area according to the size priority of the residual storage capacity and the port data sending pointer linked list.
9. The GPON system-based port packet forwarding system of claim 8, wherein the packet parsing module specifically comprises:
the second acquisition module is used for analyzing the input command and the protocol to form a rule and acquiring an instance number corresponding to each data packet;
the aggregation group determining module is used for determining an aggregation group which is corresponding to each instance and used for sending the data packet;
and the port determining module is used for determining a corresponding port for sending the data packet in the aggregation group according to the flow load balancing rule.
10. The GPON system-based port packet forwarding system according to claim 9, wherein the first obtaining module specifically comprises:
the pre-establishing module is used for pre-establishing a corresponding relation between the ports and the link directions;
and the destination MAC address analysis module is used for carrying out destination MAC analysis on the data packet in the receiving buffer area to obtain the relationship among the port, the destination MAC and the link direction.
CN201810665611.6A 2018-06-26 2018-06-26 Port data packet sending method and system based on GPON system Expired - Fee Related CN108882064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810665611.6A CN108882064B (en) 2018-06-26 2018-06-26 Port data packet sending method and system based on GPON system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810665611.6A CN108882064B (en) 2018-06-26 2018-06-26 Port data packet sending method and system based on GPON system

Publications (2)

Publication Number Publication Date
CN108882064A CN108882064A (en) 2018-11-23
CN108882064B true CN108882064B (en) 2021-02-02

Family

ID=64295583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810665611.6A Expired - Fee Related CN108882064B (en) 2018-06-26 2018-06-26 Port data packet sending method and system based on GPON system

Country Status (1)

Country Link
CN (1) CN108882064B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110620775A (en) * 2019-09-19 2019-12-27 四川天邑康和通信股份有限公司 Method for capturing and analyzing GPON control management protocol data packet
CN111915475B (en) * 2020-07-10 2024-04-05 长沙景嘉微电子股份有限公司 Processing method of drawing command, GPU, host, terminal and medium
CN114172795B (en) * 2021-11-17 2023-08-11 苏州浪潮智能科技有限公司 Method and system for detecting network loop in linked list

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5432909A (en) * 1992-04-10 1995-07-11 Eastman Kodak Company Method and apparatus for redistributing multiple distributed data sets in a ring connected multiprocessor
CN1527624A (en) * 2003-09-25 2004-09-08 中兴通讯股份有限公司 Vocoder unit for mobile communication system and its phonetic frame displayching method
CN101119220A (en) * 2007-09-24 2008-02-06 中兴通讯股份有限公司 Gb passive optical network based multicast service implementing method and apparatus
US7508836B2 (en) * 2004-12-01 2009-03-24 Arm Limited Data processing apparatus and method for handling transactions
CN101478473A (en) * 2008-01-02 2009-07-08 中兴通讯股份有限公司 MAC uplink scheduling method and apparatus used for GPON OLT
CN107135167A (en) * 2017-04-19 2017-09-05 畅捷通信息技术股份有限公司 Data transmission method, data transmission device and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5432909A (en) * 1992-04-10 1995-07-11 Eastman Kodak Company Method and apparatus for redistributing multiple distributed data sets in a ring connected multiprocessor
CN1527624A (en) * 2003-09-25 2004-09-08 中兴通讯股份有限公司 Vocoder unit for mobile communication system and its phonetic frame displayching method
US7508836B2 (en) * 2004-12-01 2009-03-24 Arm Limited Data processing apparatus and method for handling transactions
CN101119220A (en) * 2007-09-24 2008-02-06 中兴通讯股份有限公司 Gb passive optical network based multicast service implementing method and apparatus
CN101478473A (en) * 2008-01-02 2009-07-08 中兴通讯股份有限公司 MAC uplink scheduling method and apparatus used for GPON OLT
CN107135167A (en) * 2017-04-19 2017-09-05 畅捷通信息技术股份有限公司 Data transmission method, data transmission device and server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GPON管理系统;陈莉;《软件设计开发》;20120627;第8卷(第6期);全文 *

Also Published As

Publication number Publication date
CN108882064A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN107959633B (en) Multi-path load balancing method based on price mechanism in industrial real-time network
US9461928B2 (en) LACP negotiation processing method, relay node, and system
KR101317969B1 (en) Inter-node link aggregation system and method
CN108882064B (en) Port data packet sending method and system based on GPON system
US20150156107A1 (en) Method, Controller, and System for Processing Data Packet
Wang et al. Implementation of multipath network virtualization with SDN and NFV
US20130003549A1 (en) Resilient Hashing for Load Balancing of Traffic Flows
US9774932B2 (en) Method and apparatus for data packet switching, access switch and switching system
US8284791B2 (en) Systems and methods for load balancing of management traffic over a link aggregation group
CN109379297B (en) Method and device for realizing flow load balance
CN111526089B (en) Data fusion transmission and scheduling device based on variable-length granularity
CN108235379A (en) A kind of method and apparatus of data transmission
CN114679407A (en) Link aggregation method, device, equipment and storage medium
Liang et al. Blockchain-based efficient recovery for secure distributed control in software defined optical networks
CN113438182B (en) Credit-based flow control system and flow control method
CN105207944A (en) FAST TCP based transmission control method
CN101232508B (en) Equipment and method for speeding up poly spanning tree protocol network topological convergence
US8767736B2 (en) Communication device, communication method, and recording medium for recording communication program
CN116886621B (en) Message forwarding control method, DPU and related equipment
US20210092058A1 (en) Transmission of high-throughput streams through a network using packet fragmentation and port aggregation
CN113612698A (en) Data packet sending method and device
WO2016138705A1 (en) Method and device for managing link in load sharing
Cai et al. Survey on converged data center networks with DCB and FCoE: standards and protocols
Liu et al. Flow splitting scheme over link‐disjoint multiple paths in software‐defined networking
US20200296044A1 (en) Data Scheduling Method and Tor Switch

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210202