CN108882064A - A kind of port data packet transmission method and system based on GPON system - Google Patents

A kind of port data packet transmission method and system based on GPON system Download PDF

Info

Publication number
CN108882064A
CN108882064A CN201810665611.6A CN201810665611A CN108882064A CN 108882064 A CN108882064 A CN 108882064A CN 201810665611 A CN201810665611 A CN 201810665611A CN 108882064 A CN108882064 A CN 108882064A
Authority
CN
China
Prior art keywords
port
data packet
buffer area
data
same direction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810665611.6A
Other languages
Chinese (zh)
Other versions
CN108882064B (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
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • 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 present invention relates to ethernet passive optical network technical fields, provide a kind of port data packet transmission method and system based on GPON system, and method includes:The data packet that each optical network unit ONU is sent is received, and the data packet received is temporarily stored in preconfigured reception buffer area;The relationship between port, purpose MAC and link direction is obtained, data packet unloading in the same direction will be belonged in corresponding buffer area in the same direction in the reception buffer area;Data packet in the buffer area in the same direction is parsed, port data is generated and sends pointer chained list;Pointer chained list is sent according to the port data of generation, it sends the data packet in the buffer area in the same direction in corresponding port buffer, to realize link loop free, load balancing to multiport send data packet, when a certain link breaks down, other links provide backup, improve the transmission reliability and transmitting efficiency of data message.

Description

A kind of port data packet transmission method and system based on GPON system
Technical field
The invention belongs to ethernet passive optical network technical field more particularly to a kind of port data packets based on GPON system Sending method and system.
Background technique
Ethernet passive optical network (Gigabit-Capable PON, GPON) technology is a kind of based on ethernet technology, point To the passive optical network access technology of multiple spot, collect ethernet technology it is easy to maintain, inexpensive and PON network efficient the features such as It, is the best mode for realizing Optical Access Network.
With the quickening of the integration of three networks and fiber entering household process, GPON system is generally used, broadband access network, video on demand, The demands such as online game are increasing, and number of users is huge.Under the premise of GPON system resource is certain, the video of user's program request Etc. contents there are delay phenomenon, there is Caton phenomenon in online game, and user experience is poor.Meanwhile when link breaks down, hair It is raw to interrupt, influence user's use.
Summary of the invention
The purpose of the present invention is to provide a kind of port data packet transmission methods based on GPON system, it is intended to solve existing In technology under the premise of GPON system resource is certain, there are delay phenomenon, online games to go out for the contents such as video of user's program request Existing Caton phenomenon, user experience are poor.Meanwhile when link breaks down, interrupts, influence the problem of user uses.
The invention is realized in this way a kind of port data packet transmission method based on GPON system, the method includes Following step:
The data packet that each optical network unit ONU is sent is received, and the data packet received is temporarily stored in preconfigured It receives in buffer area;
The relationship between port, purpose MAC and link direction is obtained, data in the same direction will be belonged in the reception buffer area Packet unloading is in corresponding buffer area in the same direction;
By parsing to input order and agreement, formation rule carries out the data packet in the buffer area in the same direction Parsing generates port data and sends pointer chained list, and it includes data frame first address, data frame that the port data, which sends pointer chained list, Relationship between length, next data frame header addresses and sending port;
Pointer chained list is sent according to the port data of generation, sends the data packet in the buffer area in the same direction to pair In the port buffer answered;
Wherein, load balancing and mutually redundant strategy are all made of between the port between aggregation group and in aggregation group.
As an improvement scheme, the method also includes following step:
During port buffer sends data, the free memory capacity of each port buffer is carried out Monitoring;
It is described to described slow in the same direction to the execution of the data packet in the buffer area in the same direction is delivered to from the reception buffer area The data packet rushed in area is parsed, and the step of port data sends pointer chained list and subsequent step are generated.
As an improvement scheme, the method also includes following step:
Size priority and port data according to residual storage capacity send pointer chained list, deliver a packet to correspondence Port buffer.
As an improvement scheme, the step of data packet in the buffer area in the same direction parses specifically wraps Include following step:
By being parsed to input order and agreement, formation rule, obtain example corresponding to each data packet Number, and determine that, for sending the aggregation group of data packet corresponding to each example, the rule includes port numbers, aggregation group Number, instance number, vlan number, No. QINQ relationship between link direction;
According to the balanced rule of traffic load, the corresponding ports for sending data packet are determined in aggregation group.
As an improvement scheme, the step of relationship obtained between port, purpose MAC and link direction is specific Include the following steps:
According to the corresponding relationship between the port and link direction pre-established, to the data packet in the reception buffer area Purpose MAC parsing is carried out, the relationship between port, purpose MAC and link direction is acquired.
Another object of the present invention is to provide a kind of port data packet dispatching system based on GPON system, the systems Including:
Packet-receiving module, the data packet sent for receiving each optical network unit ONU;
Temporary storage module, for the data packet received to be temporarily stored in preconfigured reception buffer area;
First obtains module, for obtaining the relationship between port, purpose MAC and link direction;
Unloading module, for data packet unloading in the same direction will to be belonged in corresponding buffer area in the same direction in the reception buffer area It is interior;
Resolve packet module, for by input order and agreement parse, formation rule, and to it is described in the same direction Data packet in buffer area is parsed;
Pointer chained list generation module, for generating port data hair according to the parsing to the data packet in buffer area in the same direction Pointer chained list is sent, it includes data frame first address, data frame length, next data frame stem that the port data, which sends pointer chained list, Relationship between address and sending port;
First packet sending module will be described in the same direction for sending pointer chained list according to the port data of generation Data packet in buffer area is sent in corresponding port buffer;
Wherein, load balancing and mutually redundant strategy are all made of between the port between aggregation group and in aggregation group.
As an improvement scheme, the system also includes:
Free memory capacity monitoring modular is used for during port buffer sends data, each end The free memory capacity of mouth buffer area is monitored;
Execution module is returned to, for being delivered to the execution of the data packet in the buffer area in the same direction to from the reception buffer area The data packet in the buffer area in the same direction parses, generate port data send pointer chained list the step of and it is subsequent The step of.
As an improvement scheme, the system also includes:
Second packet sending module, for the size priority and port data transmission pointer according to residual storage capacity Chained list delivers a packet to corresponding port buffer.
As an improvement scheme, the resolve packet module specifically includes:
Second obtains module, for by parsing to input order and agreement, formation rule to obtain each data The corresponding instance number of packet, the rule comprising port numbers, polymerization group number, instance number, vlan number, No. QINQ and link direction it Between relationship;
Aggregation group determining module, for determining corresponding to each example for sending the aggregation group of data packet;
Port determining module, for being determined for sending data packet in aggregation group according to the balanced rule of traffic load Corresponding ports.
As an improvement scheme, it is described first acquisition module specifically includes:
Module is pre-established, the corresponding relationship between port and link direction for pre-establishing;
Target MAC (Media Access Control) address parsing module is obtained for carrying out purpose MAC parsing to the data packet in the reception buffer area It obtains to the relationship between port, purpose MAC and link direction.
In embodiments of the present invention, the data packet that each optical network unit ONU is sent, and the data packet that will be received are received It is temporarily stored in preconfigured reception buffer area;The relationship between port, purpose MAC and link direction is obtained, by the reception Belong to data packet unloading in the same direction in buffer area in corresponding buffer area in the same direction;To the data packet in the buffer area in the same direction into Row parsing generates port data and sends pointer chained list;Pointer chained list is sent according to the port data of generation, it will be described in the same direction Data packet in buffer area is sent in corresponding port buffer, thus realize link loop free, load balancing to multiterminal Mouth sends data packet, and when a certain link breaks down, other links provide backup, improves the transmission reliability and hair of data message Efficiency is sent, while also solving video content Caton phenomenon, provides better service for user.
Detailed description of the invention
Fig. 1 is the implementation flow chart of the port data packet transmission method provided by the invention based on GPON system;
Fig. 2 is the link structure schematic diagram of OLT provided by the invention;
Fig. 3 is that data packet provided by the invention sends schematic diagram;
Fig. 4 is the implementation flow chart that the data packet provided by the invention in the buffer area in the same direction is parsed;
Fig. 5 is the structural block diagram of the port data packet dispatching system provided by the invention based on GPON system.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 shows the implementation flow chart of the port data packet transmission method provided by the invention based on GPON system, Specifically include following step:
In step s101, the data packet that each optical network unit ONU is sent is received, and the data packet received is kept in In preconfigured reception buffer area.
In step s 102, framework is built according to network organizing and source MAC learns, obtain port, purpose MAC and chain Relationship between the direction of road will belong to data packet unloading in the same direction in corresponding buffer area in the same direction in the reception buffer area.
In this step, buffer area in the same direction can be configured according to practical situation, be generally divided into according to service content Both direction or four direction or eight directions etc., herein with both direction, that is, exist two buffer areas in the same direction for said It is bright.
Wherein, received data packet is stored in and receives buffer area, according to the aggregate command inputted in the page, establish polymerization Corresponding relationship between group, port and link direction analyzes the target MAC (Media Access Control) address of received data packet, finds MAC purpose Then the data packet of the same direction is stored in buffer area in the same direction by the relationship between address, port, aggregation group and link direction;
The aggregate command can use following orders:
Interface interface-number
Port-group port-group–number
Interface aggregate-port port-number
Aggregate-port load-balance { dst-mac ︱ src-mac ︱ ip }.
In step s 103, by being parsed to input order and agreement, formation rule, and to the buffer area in the same direction The frame originating point information of the data frame of interior data packet and the header information of IP datagram are parsed, and are generated port data and are sent pointer Chained list, the port data send pointer chained list include data frame first address, data frame length, next data frame header addresses and Relationship between sending port.
In this step, in buffer area in the same direction, take out the mac frame head of data packet in mac controller, according to VLAN, Corresponding relationship between double layer VLAN and spanning-tree instance, to VLAN, double layer VLAN, the source MAC in the mac frame head of data packet Location is analyzed, and the source IP address of data packet head, purpose IP address are analyzed in CPU in the packet header IP for taking out data packet, According to the corresponding relationship between VLAN, double layer VLAN and Multiple Spanning Tree Instance, load balancing mode in aggregation group establishes port number According to pointer chained list is sent, the data packet in buffer area in the same direction is sent in port buffer.
Wherein, buffer area in the same direction uses two-port RAM structure, and capacity controllable sends data pointer chained list handle according in the same direction Batch data is transmitted to port buffer, port data send pointer list structure by data frame header addresses, data frame length, Relationship between next frame data frame header addresses and sending port.
In step S104, pointer chained list is sent according to the port data of generation, it will be in the buffer area in the same direction Data packet is sent in corresponding port buffer;
In this embodiment, between the port between aggregation group and in aggregation group (port number may be two or more) Be all made of load balancing and mutually redundant strategy, wherein as shown in connection with fig. 2, each OLT device and corresponding interchanger it Between there are multiple link directions, each link direction has a different aggregation groups, several ports are equipped in aggregation group.
In this step, port buffer uses fifo structure, is sequentially sent to chain road.
In conjunction with shown in Fig. 2 and Fig. 3, Fig. 2 is the link structure of OLT, and Fig. 3 is data packet transmission schematic diagram, wherein:
In Fig. 2, each OLT device corresponds to several OUN, and two service content are connected in each OLT device Interchanger, i.e. interchanger 1 and interchanger 2, wherein the corresponding link direction of each interchanger, it is therefore, shown in Fig. 2 On schematic diagram, there are two link direction (direction 1 and direction 2), setting (is used respectively there are two aggregation group on each link direction A and B are indicated), i.e. aggregation group 1 and aggregation group 2 set that there are two ports in each aggregation group;
Fig. 3 shows the corresponding relationship for receiving buffer area, buffer area in the same direction and port buffer, wherein:
Before executing above-mentioned steps S101, corresponding reception buffer area, buffer area in the same direction and port buffering are preset Area, what is provided in Fig. 3 is the situation of two buffer areas and four ports in the same direction, and the first two port belongs to aggregation group A, latter two end Mouth belongs to aggregation group B.
In this embodiment, during port buffer sends data, the sky of each port buffer Not busy memory capacity is monitored;
It is described to described slow in the same direction to the execution of the data packet in the buffer area in the same direction is delivered to from the reception buffer area The data packet rushed in area is parsed, and the step of port data sends pointer chained list and subsequent step are generated.
Wherein, pointer chain is sent when being parsed to the data packet for being newly stored in buffer area in the same direction and establish new port data After table, when data packet is sent to port buffer from buffer area in the same direction, according to the size priority of residual storage capacity and end Mouth data send pointer chained list and are sent, i.e., its priority of the bigger port buffer of residual storage capacity is higher, according to this A sequence sends pointer chained list in combination with above-mentioned port data and carries out transmission data;In this embodiment, port data is sent The structure of pointer chained list is as shown in the table:
First address Frame length Next frame first address Port
The data for forming port numbers 1 send pointer chained list, and the data of port numbers 2 send pointer chained list, and form port The data of number n send pointer chained list.
As shown in figure 4, the step of parsing to the data packet in the buffer area in the same direction specifically includes following step:
In step s 201, by being parsed to input order and agreement, formation rule, and obtain each data packet Corresponding instance number, and determine that, for sending the aggregation group of data packet corresponding to each example, the rule includes end Slogan, polymerization group number, instance number, vlan number, No. QINQ relationship between link direction.
In this step, which is that the rule pre-established uses this then during actual resolve packet Rule parses data packet, particularly belongs to that instance number to obtain the data packet, and learn that the data packet passes through that A aggregation group carries out data transmission, wherein there are two realize in the case of aggregation group for this situation;
Its concrete implementation process is:Using the priority vector of CIST2, { root path is opened outside CIST root bridge ID, CIST Pin, the domain CIST root bid, CIST inner track expense, CIST specify bridge BID, CIST that aggregation group PID, CIST is specified to receive polymerization Group PID and the priority vector of MSTI1 example { domain MSTI root bid, MSTI inner track expense, MSTI specify bridge BID, MSTI Specified aggregation group PID, MSTI receive polymerization and rent PID }, generate multiple spanning tree.
In step S202, according to the balanced rule of traffic load, pair for sending data packet is determined in aggregation group Answer port.
In this embodiment, after determining that data packet carries out data transmission by that aggregation group, it is thus necessary to determine that data packet Data transmission is carried out by that port in aggregation group, specific implementation is according to the balanced rule of above-mentioned traffic load, wherein should Traffic load equilibrium rule is specially:
(1) source IP address and VLAN operation;
(2) purpose IP address and VLAN operation;
(3) source IP address and purpose IP address is different and VLAN operation;
(4) source MAC and VLAN operation;
(5) target MAC (Media Access Control) address and VLAN operation;
(6) source MAC and target MAC (Media Access Control) address and VLAN operation;
One of operation rule is chosen, with the sending port of HASH algorithms selection aggregated links, details are not described herein, But the limitation present invention is not had to.
The transmission link of no aggregation group divided can be used down as another specific implementation of the invention The mode of stating realizes the determination of example and the determination of link:Using the priority vector of CIST1 { outside CIST root bridge ID, CIST Root path cost, the domain CIST root bid, CIST inner track expense, CIST specify bridge BID, CIST designated port PID, and CIST connects Receiving end mouth PID } and MSTI1 example priority vector the domain MSTI root bid, MSTI inner track expense, MSTI specify bridge BID, MSTI designated port PID, MSTI receiving port PID }, generate multiple spanning tree.
Wherein, for there is polymerization to indicate and without the spanning tree order that polymerization indicates, can realize using following programs:
Spanning-tree
Spanning-tree mode mstp
Spanning-tree mode mstp instance instance-number VLAN vlan-number
Spanning-tree mode mstp instance instance-number port- prioritypriority
Spanning-tree mode mstp instance instance-number LAG-prioritypriority
It is above-mentioned only to provide one of implementation, herein not to limit the present invention.
In embodiments of the present invention, when link works normally in aggregation group, load balancing is realized by HASH algorithm, works as chain It when the failure of road, is mutually backups, continues as user and service is provided;When link is normal between aggregation group, realize that load is equal by example Weighing apparatus, when link failure, is mutually backups, and continues as user and provides service, to realize the double copies of link.
For ease of description, following to provide concrete implementation example in conjunction with shown in Fig. 2 and Fig. 3:
According to group-network construction, the port the GPON system OLT port 1- 4 connects interchanger 1, is defined as link direction 1, GPON system The system port the OLT port 5- 8 connects interchanger 2, is defined as link direction 2.Port 1 and port 2 polymerize, and are defined as aggregation group 1;End Mouth 3 and port 4 polymerize, and are defined as aggregation group 2;Port 5 and port 6 polymerize, and are defined as aggregation group 3;Port 7 and port 8 polymerize, It is defined as aggregation group 4.
According to aggregate command, make port 1, port 2 is defined as aggregation group 1;Make port 3, port 4 is defined as aggregation group 2. GPON system OLT and interchanger 1 run aggregation protocol, make the port 1 of OLT, port 2, port 3, pair of port 4 and interchanger 1 Port is answered to polymerize respectively.
In port 1, load balancing, input load equalization command Aggregate-portload- are carried out between port 2 balance{ip}
The IP address and vlan number of terminal carry out HASH operation, and selection port sends data.
Spanning-Tree Protocol Spanning-tree is opened, Spanning-tree mode mstp runs Multiple Spanning Tree Protocol, Spanning-tree mode mstp instance instance-number1VLANvlan-number VLAN1- VLAN1-VLAN500 is mapped onto example 1, Spanning-treemode mstp instance instance- by VLAN500 VLAN501-VLAN1000 is mapped onto example 2 by number2VLAN vlan-numberVLAN501-VLAN1000; Spanning-tree modemstp instance instance-number1LAG1-priority priority 16, Spanning-tree mode mstp instance instance-number1LAG2-prioritypriority 4096, Spanning-tree mode mstp instance instance-number2LAG1-priority priority 4096, Spanning-tree mode mstp instanceinstance-number2LAG2-priority priority 16,
Example 1 is 16 in the priority number of aggregation group 1, and example 1 is 4096 in the priority number of aggregation group 2, and example 1 is poly- It is combined 1 priority height.
Example 2 is 4096 in the priority number of aggregation group 1, and example 2 is 16 in the priority number of aggregation group 2, and example 2 is poly- It is combined 2 priority height.
After running more example Spanning-Tree Protocols, the priority vector { outside CIST root bridge ID, the CIST root road of CIST2 is used Diameter expense, the domain CIST root bid, CIST inner track expense, CIST specify bridge BID, CIST that aggregation group PID, CIST is specified to receive Aggregation group PID } and MSTI1 example priority vector the domain MSTI root bid, MSTI inner track expense, MSTI specify bridge BID, MSTI specifies aggregation group PID, MSTI to receive polymerization and rent PID }, carry out priority vector comparison.Establish NNI port numbers, aggregation group Number, spanning-tree instance number, vlan number, No. QINQ, the relationship between link direction.Link under normal circumstances, example 1 is corresponding Data packet by aggregation group 1 send, the corresponding data packet of example 2 by aggregation group 2 send.Data packet is in aggregation group 1,2 Between realize load sharing, load sharing is realized in aggregation group inner port 1 and port 2, and load sharing is realized in port 3 and port 4.
After OLT receives data packet, it is temporarily stored into and receives buffer area, analyze the target MAC (Media Access Control) address of data packet, find purpose Data packet is stored in buffer area in the same direction by the corresponding relationship between MAC Address and link direction.Analyze buffer data packet in the same direction The vlan information of data frame header, such as the vlan number of current data packet is 200,.Vlan number 200 belongs to example 1, current number It is sent according to Bao Yingcong aggregation group 1, the IP address information and vlan number for then analyzing current data packet again carry out HASH operation, selection The port of transmission.Then the port for forming current data packet sends pointer chained list.Being stored in the data packet of buffer area in the same direction successively After analysis, the transmission pointer chained list of port 1-4 is formed, the data packet of buffer area in the same direction is then sent to port buffer, by Data packet is sent to chain road by port buffer.The capacity of buffer area is controllable in the same direction, according to the free time of port buffer Capacity determines the quantity for sending data packet.In the same direction buffer data packet only analyzes the information and IP datagram of data frame header Header information forms port and sends pointer chained list, carries out batch data transmission, makes to send data faster.
When the link of aggregation group 1 breaks down, the data packet of the corresponding data packet of example 1 and example 2 all passes through aggregation group 2 It sends, realizing aggregation group 2 is the warm back-up of aggregation group 1, and is mutually backups.
When 1 middle port of aggregation group, 1 link breaks down, the data packet of aggregation group 1 is all sent from port 2.Realize port 1 It is mutually backups with port 2.
For this structure when link is normal, data packet transmission realizes load sharing, chain between aggregation group in aggregation group It is all mutually backups between aggregation group in aggregation group when the failure of road, is hot double copies structure, it is relatively reliable.
Fig. 5 shows the structural block diagram of the port data packet dispatching system provided by the invention based on GPON system, in order to Convenient for explanation, part related to the embodiment of the present invention is only gived in figure.
Port data packet dispatching system based on GPON system includes:
Packet-receiving module 11, the data packet sent for receiving each optical network unit ONU;
Temporary storage module 12, for the data packet received to be temporarily stored in preconfigured reception buffer area;
First obtains module 13, for obtaining the relationship between port, purpose MAC and link direction;
Unloading module 14, for data packet unloading in the same direction will to be belonged in corresponding buffering in the same direction in the reception buffer area In area;
Resolve packet module 15, for being parsed to the data packet in the buffer area in the same direction;
Pointer chained list generation module 16, for generating port data according to the parsing to the data packet in buffer area in the same direction Pointer chained list is sent, it includes data frame first address, data frame length, next data frame head that the port data, which sends pointer chained list, Relationship between portion address and sending port;
First packet sending module 17 will be described same for sending pointer chained list according to the port data of generation Data packet into buffer area is sent in corresponding port buffer;
Wherein, load balancing and mutually redundant plan are all made of between two ports between aggregation group and in aggregation group Slightly.
On the basis of the embodiment, the above-mentioned port data packet dispatching system based on GPON system further includes:
Free memory capacity monitoring modular 18 is used for during port buffer sends data, described in each The free memory capacity of port buffer is monitored;
Execution module 19 is returned to, for holding to the data packet being delivered in the buffer area in the same direction from the reception buffer area The row data packet in the buffer area in the same direction parses, generate the step of port data sends pointer chained list and after Continuous step.
Wherein, the second packet sending module 20, for the size priority and port data according to residual storage capacity Pointer chained list is sent, corresponding port buffer is delivered a packet to.
In embodiments of the present invention, resolve packet module 15 specifically includes:
Second obtains module 21, for obtaining corresponding to each data packet according to the spanning tree rule pre-established Instance number, the spanning tree rule is comprising port numbers, polymerization group number, instance number, vlan number, No. QINQ between link direction Relationship;
Aggregation group determining module 22, for determining corresponding to each example for sending the aggregation group of data packet;
Port determining module 23, for being determined for sending data in aggregation group according to the balanced rule of traffic load The corresponding ports of packet.
In embodiments of the present invention, the first acquisition module 13 specifically includes:
Module 24 is pre-established, the corresponding relationship between port and link direction for pre-establishing;
Target MAC (Media Access Control) address parsing module 25, for carrying out purpose MAC parsing to the data packet in the reception buffer area, Acquire the relationship between port, purpose MAC and link direction.
Wherein, the function of above-mentioned modules is as recorded in above method embodiment, and details are not described herein.
In embodiments of the present invention, the data packet that each optical network unit ONU is sent, and the data packet that will be received are received It is temporarily stored in preconfigured reception buffer area;The relationship between port, purpose MAC and link direction is obtained, by the reception Belong to data packet unloading in the same direction in buffer area in corresponding buffer area in the same direction;To the data packet in the buffer area in the same direction into Row parsing generates port data and sends pointer chained list;Pointer chained list is sent according to the port data of generation, it will be described in the same direction Data packet in buffer area is sent in corresponding port buffer, thus realize link loop free, load balancing to multiterminal Mouth sends data packet, and when a certain link breaks down, other links provide backup, improves the transmission reliability and hair of data message Efficiency is sent, while also solving video content Caton phenomenon, provides better service for user.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Made any modifications, equivalent replacements, and improvements etc., should all be included in the protection scope of the present invention within mind and principle.

Claims (10)

1. a kind of port data packet transmission method based on GPON system, which is characterized in that the method includes the following steps:
The data packet that each optical network unit ONU is sent is received, and the data packet received is temporarily stored in preconfigured reception In buffer area;
The relationship between port, purpose MAC and link direction is obtained, data packet in the same direction will be belonged in the reception buffer area and is turned There are in corresponding buffer area in the same direction;
By parsing to input order and agreement, formation rule parses the data packet in the buffer area in the same direction, Generate port data and send pointer chained list, the port data send pointer chained list include data frame first address, data frame length, Relationship between next data frame header addresses and sending port;
Pointer chained list is sent according to the port data of generation, is sent the data packet in the buffer area in the same direction to corresponding In port buffer;
Wherein, load balancing and mutually redundant strategy are all made of between the port between aggregation group and in aggregation group.
2. the port data packet transmission method according to claim 1 based on GPON system, which is characterized in that the method It further include following step:
During port buffer sends data, the free memory capacity of each port buffer is supervised It surveys;
It is described to the buffer area in the same direction to the execution of the data packet in the buffer area in the same direction is delivered to from the reception buffer area Interior data packet is parsed, and the step of port data sends pointer chained list and subsequent step are generated.
3. the port data packet transmission method according to claim 2 based on GPON system, which is characterized in that the method It further include following step:
Size priority and port data according to residual storage capacity send pointer chained list, deliver a packet to corresponding end Mouth buffer area.
4. the port data packet transmission method according to claim 3 based on GPON system, which is characterized in that described to institute It states the step of data packet in buffer area in the same direction is parsed and specifically includes following step:
By parsing to input order and agreement, formation rule obtains instance number corresponding to each data packet, and really For sending the aggregation group of data packet corresponding to each fixed example, the rule includes port numbers, polymerization group number, example Number, vlan number, No. QINQ relationship between link direction;
According to the balanced rule of traffic load, the corresponding ports for sending data packet are determined in aggregation group.
5. the port data packet transmission method according to claim 4 based on GPON system, which is characterized in that the acquisition The step of relationship between port, purpose MAC and link direction, specifically includes following step:
According to the corresponding relationship between the port and link direction pre-established, the data packet in the reception buffer area is carried out Purpose MAC parsing, acquires the relationship between port, purpose MAC and link direction.
6. a kind of port data packet dispatching system based on GPON system, which is characterized in that the system comprises:
Packet-receiving module, the data packet sent for receiving each optical network unit ONU;
Temporary storage module, for the data packet received to be temporarily stored in preconfigured reception buffer area;
First obtains module, for obtaining the relationship between port, purpose MAC and link direction;
Unloading module, for data packet unloading in the same direction will to be belonged in corresponding buffer area in the same direction in the reception buffer area;
Resolve packet module, for by being parsed to input order and agreement, formation rule, and to the buffering in the same direction Data packet in area is parsed;
Pointer chained list generation module, for generating port data transmission and referring to according to the parsing to the data packet in buffer area in the same direction Needle chained list, it includes data frame first address, data frame length, next data frame header addresses that the port data, which sends pointer chained list, Relationship between sending port;
First packet sending module, for sending pointer chained list according to the port data of generation, by the buffering in the same direction Data packet in area is sent in corresponding port buffer;
Wherein, load balancing and mutually redundant strategy are all made of between the port between aggregation group and in aggregation group.
7. the port data packet dispatching system according to claim 6 based on GPON system, which is characterized in that the system Further include:
Free memory capacity monitoring modular, for delaying during port buffer sends data each port The free memory capacity for rushing area is monitored;
Execution module is returned to, for being delivered to described in the execution of the data packet in the buffer area in the same direction to from the reception buffer area Data packet in the buffer area in the same direction is parsed, the step of port data sends pointer chained list and subsequent step are generated Suddenly.
8. the port data packet dispatching system according to claim 7 based on GPON system, which is characterized in that the system Further include:
Second packet sending module, for the size priority and port data transmission pointer chain according to residual storage capacity Table delivers a packet to corresponding port buffer.
9. the port data packet dispatching system according to claim 8 based on GPON system, which is characterized in that the data Packet analyzing module specifically includes:
Second obtains module, for by parsing to input order and agreement, formation rule to obtain each data packet institute Corresponding instance number, the rule is comprising port numbers, polymerization group number, instance number, vlan number, No. QINQ between link direction Relationship;
Aggregation group determining module, for determining corresponding to each example for sending the aggregation group of data packet;
Port determining module, for determining pair for sending data packet in aggregation group according to the balanced rule of traffic load Answer port.
10. the port data packet dispatching system according to claim 9 based on GPON system, which is characterized in that described One acquisition module specifically includes:
Module is pre-established, the corresponding relationship between port and link direction for pre-establishing;
Target MAC (Media Access Control) address parsing module is obtained for carrying out purpose MAC parsing to the data packet in the reception buffer area Relationship between port, purpose MAC and link direction.
CN201810665611.6A 2018-06-26 2018-06-26 Port data packet sending method and system based on GPON system Active 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 true CN108882064A (en) 2018-11-23
CN108882064B CN108882064B (en) 2021-02-02

Family

ID=64295583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810665611.6A Active 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)

Cited By (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
WO2022007206A1 (en) * 2020-07-10 2022-01-13 长沙景嘉微电子股份有限公司 Drawing command processing method, gpu, main device, terminal, and medium
CN114172795A (en) * 2021-11-17 2022-03-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管理系统", 《软件设计开发》 *

Cited By (4)

* 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
WO2022007206A1 (en) * 2020-07-10 2022-01-13 长沙景嘉微电子股份有限公司 Drawing command processing method, gpu, main device, terminal, and medium
CN114172795A (en) * 2021-11-17 2022-03-11 苏州浪潮智能科技有限公司 Method and system for detecting network loop in linked list
CN114172795B (en) * 2021-11-17 2023-08-11 苏州浪潮智能科技有限公司 Method and system for detecting network loop in linked list

Also Published As

Publication number Publication date
CN108882064B (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US10382345B2 (en) Dynamic flowlet prioritization
CN106850188B (en) A kind of data transmission system based on multichannel isomery one-way transmission path
US9154330B2 (en) Method and device of link aggregation and method and system for transceiving MAC frames
CN102647355B (en) LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
US8817799B2 (en) Network processor for supporting residential gateway applications
US9762493B2 (en) Link aggregation (LAG) information exchange protocol
CN102098301A (en) Multilink self-adaptation data transmission method and system
CN108882064A (en) A kind of port data packet transmission method and system based on GPON system
WO2012001616A2 (en) Methods and systems for time sensitive networks
CN110493351B (en) Video networking access method, device, equipment and storage medium
CN101849388B (en) For the method for quality of service management of the next generation network based on Ethernet
US9985928B2 (en) Dynamic link aggregation
CN202841192U (en) High-speed reliable one-way transmission system supporting wide area network
CN106302016B (en) The method and system of small flow quick obtaining network physical bandwidth
CN108566390B (en) Satellite message monitoring and distributing service system
CN109150665A (en) A kind of bandwidth test method and apparatus
CN101808037B (en) Method and device for traffic management in switch network
CN111224889A (en) Data transmission method and device
CN113438182B (en) Credit-based flow control system and flow control method
CN113612698A (en) Data packet sending method and device
CN114095901A (en) Communication data processing method and device
CN105337832A (en) Resource distribution method for on-line multicast virtual network
CN102055657B (en) Load distributing method of fiber channel (FC) data message and FC exchanger system
CN110445639A (en) A kind of hot spare method and device of server
CN110493149A (en) A kind of method and apparatus of Message processing

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