[go: up one dir, main page]

WO2023046006A1 - 网络传输方法和设备 - Google Patents

网络传输方法和设备 Download PDF

Info

Publication number
WO2023046006A1
WO2023046006A1 PCT/CN2022/120491 CN2022120491W WO2023046006A1 WO 2023046006 A1 WO2023046006 A1 WO 2023046006A1 CN 2022120491 W CN2022120491 W CN 2022120491W WO 2023046006 A1 WO2023046006 A1 WO 2023046006A1
Authority
WO
WIPO (PCT)
Prior art keywords
address
message
tunnel
olt
tunnel message
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.)
Ceased
Application number
PCT/CN2022/120491
Other languages
English (en)
French (fr)
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to EP22872051.2A priority Critical patent/EP4383656A4/en
Publication of WO2023046006A1 publication Critical patent/WO2023046006A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Definitions

  • the present application relates to the communication field, and more specifically, to a network transmission method and device.
  • Link aggregation technology can increase link bandwidth by bundling multiple physical interfaces into one logical interface without hardware upgrade.
  • Aggregation management can mean that the optical line terminal (OLT) device deployed in the central office is used as the main device, which is directly connected to the optical network unit through optical fiber, and the optical network unit is used as a remote small-capacity slave device, no longer as an independent
  • the network element that is, the optical network unit is no longer assigned a management Internet protocol (internet protocol, IP) address), but is directly managed by the main device.
  • IP Internet protocol
  • the slave device can be regarded as a remote service board deployed on the master device, and its functions and characteristics are consistent with those of the master device.
  • the master device and slave devices are directly connected through optical fiber, which cannot support communication across IP networks, and the deployment between network devices is not flexible.
  • the present application provides a network transmission method and device, which send the IP address of the first OLT device and the IP address of the second OLT device to the first OLT device through a DHCP message, and communication can be established between the first OLT device and the second OLT Tunnel, so that the first OLT device and the second OLT device can communicate across the intermediate network, the deployment between network devices is more flexible, and the networking capability is enhanced.
  • a network transmission method includes: a first optical line terminal OLT device receives a Dynamic Host Configuration Protocol DHCP message from a second OLT device, and the DHCP message includes a first Internet Protocol IP address, a second IP address, and a second IP address.
  • the first IP address is the address assigned to the first OLT device by the DHCP server
  • the second IP address is the address of the second OLT device
  • the DHCP message also includes an indication message, the indication message is used to indicate the type of the tunnel message
  • An OLT device generates a corresponding first tunnel message according to the indication message, the source address of the first tunnel message is the first IP address, and the destination address of the first tunnel message is the second IP address.
  • a communication tunnel can be established between the first OLT device and the second OLT by carrying the IP address in the DHCP message, so that the first OLT device and the second OLT device can cross the intermediate network,
  • the deployment among network devices is more flexible, and the networking capability is enhanced.
  • the first OLT device may also be understood as a slave device
  • the second OLT device may also be understood as a master device.
  • the Option field in the DHCP message includes a third IP address and a fourth IP address
  • the payload part of the first tunnel message includes management data
  • the payload part The source address of the source address is the third IP address
  • the destination address of the payload part is the fourth IP address.
  • the data payload part in the generated tunnel message may also include management data, for example, the source address of the management data is the third IP address, and the destination address is the fourth IP address.
  • the management message is exchanged between the first OLT and the second OLT, it can be encapsulated into a tunnel message, which improves communication security.
  • the first OLT device and the second OLT device can exchange management messages based on the IP address of the management data, and the first OLT device and the second OLT device can be managed across an IP network.
  • the second OLT can automatically discover the first OLT through the DHCP method, and the first OLT device obtains management parameters (for example, the third IP address, the fourth IP address, VLAN) from the second OLT, without Third-party devices (such as cloud servers) do not require manual on-site configuration, which is more convenient and flexible, and saves costs.
  • management parameters for example, the third IP address, the fourth IP address, VLAN
  • the data payload part of the first tunnel message includes service data
  • the source address of the payload part is the IP address of the device that initiated the service data
  • the payload part The destination address is the IP address of the service server corresponding to the service data.
  • the method further includes: the first OLT device receiving a second tunnel message from the second OLT device, and the source address of the second tunnel message is the second IP address, the destination address of the second tunnel message is the first IP address; the first OLT device decapsulates the second tunnel message to obtain the payload part of the second tunnel message ; If the destination address of the payload part of the second tunnel message is the IP address of the first OLT device, the first OLT device parses the payload part of the second tunnel message; otherwise, the The first OLT device forwards the payload part of the second tunnel message according to the destination address of the payload part of the second tunnel message.
  • the data payload part in the generated tunnel message in this application may also include service data, for example, the source address of the service data is the IP address of the device that initiated the service data, The destination address of the service data is the IP address of the service server corresponding to the service data.
  • the service-type message is exchanged between the first OLT device and the second OLT, it may also be encapsulated into a tunnel message, which improves communication security. And the first OLT device and the second OLT device may transmit service packets based on the IP address of the service data.
  • the first OLT device may decapsulate the second tunnel packet from the second OLT, and determine whether to parse the packet or forward the packet according to the address of the data payload part in the second tunnel packet.
  • the second IP address is carried in the Option field of the DHCP message, or; the second IP address is carried in the server IP address field of the DHCP message, or; The second IP address is carried in the gateway IP address field of the DHCP message.
  • the second IP address in this application can be flexibly carried in the field of the DHCP message.
  • the type of the first tunnel message includes: Internet Protocol Virtual Private Network IP VPN tunnel message, multi-protocol label switching MPLS tunnel message, wherein the IP VPN tunnel message includes One of the following: VLAN tunnel packets, VxLAN tunnel packets, segment routing version SRv6 tunnel packets, and general routing encapsulated GRE tunnel packets.
  • the indication message further includes parameters of the first tunnel packet, where the parameters of the first tunnel packet are protocol parameters corresponding to the type of the first tunnel packet , when the tunnel message is a VxLAN tunnel message, the parameters of the tunnel message include: a tunnel endpoint IP address of a virtual extended local area network (VxLAN), and a VxLAN network identifier (VNI).
  • VxLAN virtual extended local area network
  • VNI VxLAN network identifier
  • the tunnel message type and the tunnel parameter corresponding to the tunnel message type may also be included in the DHCP message, so that the first OLT device sends the message (for example, a management message, a service message) etc.) are encapsulated into tunnel packets to improve communication security.
  • the method further includes: the first OLT device and the second OLT device use a keep-alive mechanism, so that the first OLT device is in the management category of the second OLT device within.
  • both communicating parties can confirm whether the opposite end is offline through the keep-alive mechanism, which can improve communication efficiency.
  • a network transmission method comprising: a second optical line terminal OLT device sends a Dynamic Host Configuration Protocol DHCP message to a first OLT device, and the DHCP message includes a first Internet Protocol IP address, a second IP address, and a second IP address.
  • the first IP address is the address assigned to the first OLT device by the DHCP server
  • the second IP address is the address of the second OLT device
  • the DHCP message also includes an indication message, and the indication message is used to indicate the type of the tunnel message;
  • the message is used by the first OLT device to generate a corresponding first tunnel message, the source address of the first tunnel message is the first IP address, and the destination address of the first tunnel message is the second IP address.
  • the Option field in the DHCP message includes a third IP address and a fourth IP address
  • the payload part of the first tunnel message includes management data; the payload part The source address of the source address is the third IP address, and the destination address of the payload part is the fourth IP address.
  • the source address of the payload part is the IP address of the device that initiates the service data
  • the destination address of the payload part is the IP address of the service server corresponding to the service data.
  • the second OLT device receives a second tunnel message from the first OLT device, the source address of the second tunnel message is the first IP address, and the second The destination address of the second tunnel message is the second IP address; the second OLT device decapsulates the second tunnel message to obtain the payload part of the second tunnel message; if the second The destination address of the payload part of the tunnel message is the IP address of the second OLT device, and the second OLT device resolves the payload part of the second tunnel message; otherwise, the second OLT device according to the forwarding the payload part of the second tunnel message according to the destination address of the payload part of the second tunnel message.
  • the second IP address is carried in the Option field of the DHCP message, or; the second IP address is carried in the server IP address field of the DHCP message, or; The second IP address is carried in the gateway IP address field of the DHCP message.
  • the type of the first tunnel message includes: Internet Protocol Virtual Private Network IP VPN tunnel message, multi-protocol label switching MPLS tunnel message, wherein the IP VPN tunnel message includes One of the following: VLAN tunnel packets, VxLAN tunnel packets, segment routing version SRv6 tunnel packets, and general routing-encapsulated GRE tunnel packets.
  • the indication message further includes parameters of the first tunnel packet, where the parameters of the first tunnel packet are protocol parameters corresponding to the type of the first tunnel packet , when the tunnel message is a VxLAN tunnel message, the parameters of the tunnel message include: a virtual extended local area network (VxLAN) tunnel endpoint IP address, and a VxLAN network identifier VNI.
  • VxLAN virtual extended local area network
  • the method further includes: the first OLT device and the second OLT device use a keep-alive mechanism, so that the first OLT device is in the management category of the second OLT device within.
  • a network transmission device in a third aspect, includes a unit for executing the method in the first aspect or any possible implementation manner of the first aspect.
  • a network transmission device in a fourth aspect, includes a unit for executing the method in the second aspect or any possible implementation manner of the second aspect.
  • a network transmission device including a processor
  • the processor is coupled with the memory, and may be used to execute instructions in the memory, so as to implement the method in any possible implementation manner of the above first aspect.
  • the device also includes memory.
  • the device further includes a communication interface, and the processor is coupled to the communication interface.
  • the network transmission device is an optical line terminal device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the device is a chip configured in a terminal device.
  • the communication interface may be an input/output interface.
  • the device is a host node device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the device is a chip configured in the host node.
  • the communication interface may be an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • a sixth aspect provides a network transmission device, including a processor.
  • the processor is coupled with the memory, and can be used to execute instructions in the memory, so as to implement the method in any possible implementation manner of the second aspect above.
  • the device also includes memory.
  • the device further includes a communication interface, and the processor is coupled to the communication interface.
  • the device is a network device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the device is a chip configured in a network device.
  • the communication interface may be an input/output interface.
  • the device is a host node device.
  • the communication interface may be a transceiver, or an input/output interface.
  • the device is a chip configured in the host node device.
  • the communication interface may be an input/output interface.
  • the transceiver may be a transceiver circuit.
  • the input/output interface may be an input/output circuit.
  • a processor including: an input circuit, an output circuit, and a processing circuit.
  • the processing circuit is configured to receive a signal through the input circuit and transmit a signal through the output circuit, so that the processor executes the method in any one possible implementation manner of the first aspect and the second aspect.
  • the above-mentioned processor can be one or more chips
  • the input circuit can be an input pin
  • the output circuit can be an output pin
  • the processing circuit can be a transistor, a gate circuit, a flip-flop and various logic circuits, etc.
  • the input signal received by the input circuit may be received and input by, for example but not limited to, a transceiver
  • the output signal of the output circuit may be, for example but not limited to, output to the transmitter and transmitted by the transmitter
  • the circuit may be the same circuit, which is used as an input circuit and an output circuit respectively at different times.
  • the embodiment of the present application does not limit the specific implementation manners of the processor and various circuits.
  • a processing device including a processor and a memory.
  • the processor is used to read instructions stored in the memory, and may receive signals through the transceiver and transmit signals through the transmitter, so as to execute the method in any possible implementation manner of the first aspect and the second aspect.
  • processors there are one or more processors, and one or more memories.
  • the memory may be integrated with the processor, or the memory may be set separately from the processor.
  • the memory can be a non-transitory (non-transitory) memory, such as a read-only memory (read only memory, ROM), which can be integrated with the processor on the same chip, or can be respectively arranged in different On the chip, the embodiment of the present application does not limit the type of the memory and the configuration of the memory and the processor.
  • a non-transitory memory such as a read-only memory (read only memory, ROM)
  • ROM read only memory
  • a related data interaction process such as sending indication information may be a process of outputting indication information from a processor
  • receiving capability information may be a process of receiving input capability information from a processor.
  • the data output by the processor may be output to the transmitter, and the input data received by the processor may be from the transceiver.
  • the transmitter and the transceiver may be collectively referred to as a transceiver.
  • the processing device in the above eighth aspect may be one or more chips.
  • the processor in the processing device may be implemented by hardware or by software.
  • the processor When implemented by hardware, the processor may be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor may be a general-purpose processor, which is implemented by reading software codes stored in a memory, which can Integrated in a processor, it can exist independently of that processor.
  • a computer program product including: a computer program (also referred to as code, or an instruction), when the computer program is executed, the computer executes the above-mentioned first aspect and the first aspect A method in any possible implementation manner in the two aspects.
  • a computer program also referred to as code, or an instruction
  • a computer-readable medium stores a computer program (also referred to as code, or an instruction), and when it is run on a computer, the computer executes the above-mentioned first aspect and the first aspect.
  • a computer program also referred to as code, or an instruction
  • the computer executes the above-mentioned first aspect and the first aspect.
  • a system-on-a-chip including a processor, configured to call and run a computer program from a memory, so that a device installed with the system-on-a-chip executes the methods in each implementation manner of the above-mentioned first aspect and the second aspect .
  • a network transmission system is provided, where the communication system includes the device involved in the third aspect and the device involved in the fourth aspect.
  • Fig. 1 is a schematic diagram of a scenario applicable to this application.
  • Fig. 2 is a schematic diagram of a tunnel message provided by the present application.
  • FIG. 3 is a flowchart of a network transmission method 300 provided by the present application.
  • FIG. 4 is a flowchart of a network transmission method 400 provided by the present application.
  • Fig. 5 is a schematic block diagram of a network transmission device 100 provided in this application.
  • FIG. 6 is a schematic block diagram of a network transmission device 200 provided in the present application.
  • Fig. 1 is a kind of system architecture diagram that the embodiment of the present application is suitable for, as shown in the figure, this network architecture mainly comprises master device, slave device, the network between master device and slave device, network management system and virtual private network (virtual private network) network, VPN), each device is introduced below.
  • this network architecture mainly comprises master device, slave device, the network between master device and slave device, network management system and virtual private network (virtual private network) network, VPN), each device is introduced below.
  • VPN virtual private network
  • Main device the main device in this application can also be understood as a headend (headend) optical line terminal (optical line terminal, OLT).
  • the master device in this application is the core management unit, and there is only one, and the configuration of the aggregation system is distributed to the slave devices through the master device.
  • the slave device in this application, the slave device may also be understood as a remote (remote) OLT, and there may be multiple slave devices.
  • the master device and the slave device together form an aggregation system, which is a logical network element for the network management.
  • the network between the master device and the slave device can be an IP network, or a 5G network or an IP backhaul network (undertaking the communication task between the base station and the core network device).
  • the network between the head-end OLT and the remote OLT is not a logical network element of the aggregation system.
  • Network management system the network management system in this application can manage the aggregation system.
  • the aggregation system (including the master device and the slave device) is an independent network element.
  • VPN tunnel The VPN tunnel in this application can be used for exchanging management messages, protocol messages, service messages, etc. between the master device and the slave device.
  • the OLT in this application can be the central office equipment of telecommunications, which is used to connect to the optical fiber trunk line. It functions as a switch or router in a traditional communication network, and is a device for the entrance and exit of the external network and the internal network.
  • the function of the OLT is to implement traffic scheduling, buffer control, and provide user-oriented passive optical network interface and bandwidth allocation. To put it simply, it is to realize two functions. For the upstream data, complete the upstream access of the passive optical network (PON); for the downstream data, pass the acquired data through the optical data network (optical data network, ODN) is distributed to all optical network units (optical network unit, ONU), to realize the control and management of optical network terminal (optical network terminal, ONT).
  • PON passive optical network
  • ODN optical data network
  • ONT optical network terminal
  • ONU generally has two functions: to selectively receive the broadcast sent by the OLT, and to receive and respond to the OLT if it needs to receive the data; to collect and cache the Ethernet data that the user needs to send, according to the assigned sending window Send the cached data to the OLT.
  • ONT Commonly known as "optical modem", it is applied to end users and can provide users with voice, data and multimedia services. ONT is a component of ONU.
  • the OLT can be understood as a management terminal, and the ONU can be understood as a terminal.
  • the service provisioning of the ONU is issued through the OLT, and the two are in a master-slave relationship.
  • An OLT can connect multiple ONUs through an optical splitter.
  • VPN refers to a virtual private communication network established in a public network by relying on Internet service providers and network service providers.
  • a VPN can be understood as establishing a temporary and secure connection through a public network (for example, the Internet), and is a safe and stable tunnel that can pass through the public network.
  • VPN is an extension of the enterprise intranet.
  • VPN can help remote users, company branches, business partners and suppliers establish credible and secure connections with the company's intranet and ensure safe data transmission.
  • VPN can be used for global Internet access of growing mobile users to achieve secure connection; virtual private circuit can be used to realize secure communication between corporate websites, and secure extranet virtual private network can be used to cost-effectively connect to business partners and users net.
  • Virtual local area network (virtual local area network, VLAN): It can be understood as a group of logical devices and users. These devices and users are not limited by physical location, and can be organized according to functions, departments, applications and other factors. Communicate with each other as if they were on the same network segment. VLAN can solve the problem that switches cannot limit broadcasting when they are interconnected in LANs. This technology can divide a local area network (local area network, LAN) into multiple logical LANs, that is, VLANs. Each VLAN is a broadcast domain. The communication between hosts in a VLAN is the same as in a LAN, but the communication between VLANs cannot be directly communicated. In this way, the broadcast message is limited to a VLAN.
  • LAN local area network
  • VPN mainly integrates networks distributed in different places, logically seem to be in the same LAN; and VLAN can further divide and isolate a LAN into smaller networks.
  • Virtual extended local area network (virtual extensible local area network, VxLAN): It is an extension of the traditional VLAN protocol.
  • VxLAN is characterized by encapsulating Layer 2 Ethernet frames into User Datagram Protocol (UDP) and transmitting them in Layer 3 network.
  • UDP User Datagram Protocol
  • VXLAN is essentially a tunneling technology between the source network device and the destination network device On the IP network between them, a logical tunnel is established, and the user-side message is forwarded through this tunnel after specific encapsulation. From the user's point of view, the server connected to the network is like connected to a virtual layer 2 switch On different ports, you can communicate easily.
  • VLAN has only about 4,000 VLANs in the standard definition, which cannot meet the tenant isolation requirements of large data centers.
  • Layer 2 range of a VLAN is generally small and fixed, which cannot support large-scale dynamic migration of virtual machines.
  • VxLAN makes up for the above shortcomings of VLAN.
  • VxLAN through 24 bits in VxLAN, it can provide up to 16M tenant identification capabilities, which is far greater than the 4000 of VLAN; on the other hand, VxLAN essentially builds a network between two switches.
  • the data center network is virtualized into a giant "Layer 2 switch" to meet the needs of large-scale dynamic migration of virtual machines.
  • Tunneling technology is a way to establish a virtual link between networks by using the infrastructure of the Internet to transfer data.
  • the data transmitted using the tunnel can be protocol data unit (protocol data unit, PDU) of different protocols.
  • PDU protocol data unit
  • the tunnel can re-encapsulate PDUs of other protocols and send them through the network.
  • the new PDU provides routing information so that the encapsulated data can be transmitted through the Internet. . Since the PDU is re-encapsulated, the sender and receiver of the data are like a dedicated "tunnel" for data transmission and communication. In order to establish a tunnel, the communicating parties at both ends of the tunnel must use the same tunneling protocol.
  • tunnel technology is to use one network layer protocol to transmit another network layer protocol encapsulation technology. That is to use a network transmission protocol to encapsulate data packets generated by other protocols in its own packets, and then transmit them in the network. Its basic function is encapsulation and encryption.
  • the data transferred using the tunnel can be data frames or packets of different protocols.
  • the tunneling protocol re-encapsulates the data frames or packets of these other protocols in new packet headers and sends them.
  • the new header provides routing information so that the encapsulated payload data can be passed across the Internet.
  • the encapsulated packets are routed through the public internetwork between the two endpoints of the tunnel.
  • the logical path through which the encapsulated data packets are transmitted on the public Internet is called a tunnel.
  • Tunnel technology refers to the whole process including data encapsulation, transmission and decapsulation.
  • VPN tunnel usually refers to a virtual connection for transmitting VPN data established between VPN nodes or between a VPN node and a user node. Tunneling allows data to be publicly transmitted from one VPN node to another.
  • VxLAN tunnel used for forwarding VxLAN packets, identified by local VxLAN tunnel endpoint (VxLAN tunnel end point, VTEP) address + remote VTEP address, a pair of VTEP can determine a VxLAN tunnel.
  • VTEP is the starting point and end point of the VxLAN tunnel, and the encapsulation and decapsulation of the user's original data frame by VxLAN is performed on the VTEP.
  • VTEP can be either an independent network device or a virtual switch in a server.
  • the original data frame sent by the source server is encapsulated into a VXLAN format message on the VTEP, and transmitted to another VTEP in the IP network, and the original data frame is restored after decapsulation and conversion, and finally forwarded to the destination server.
  • VxLAN network identifier VxLAN network identifier
  • VNI VxLAN network identifier
  • VxLAN network identifier VxLAN network identifier
  • VNI occupies 24 bits in the data packet, so it can support the simultaneous existence of 16 million VxLANs, far more than 4094 VLANs, so it can adapt to the deployment of large-scale tenants.
  • This VxLAN tunnel between VTEPs can be shared by all VNIs between two network virtualization edge (NVE) devices.
  • NVE network virtualization edge
  • a VNI represents a tenant, and virtual machines belonging to different VN1s cannot directly communicate at Layer 2.
  • tunnels in this application are not limited to the VPN tunnels and VxLan tunnels described above, and can also be other 3-layer network virtualization (network virtualization over layer 3, NVO3) Technology-related tunnels, such as: segment routing version 6 (segment routing version 6, SRv6) tunnels, generic routing encapsulation (GRE) tunnels, etc., can also be multi-protocol label switching (multi-protocol label switching, MPLS) )tunnel.
  • segment routing version 6 segment routing version 6, SRv6
  • GRE generic routing encapsulation
  • MPLS multi-protocol label switching
  • FIG. 2 shows a VxLAN tunnel message.
  • VxLAN encapsulates the data frames communicated in the logical network (also can be understood as "data payload") in the physical network for transmission, and the process of encapsulation and decapsulation is completed by the VTEP node.
  • VxLAN adds the VxLAN header to the data frame in the logical network, it is encapsulated in the UDP packet in the physical network and transmitted.
  • the format of the VXLAN header is shown in Figure 2. As shown in (a) in Figure 2, the VxLAN header is composed of 8 bytes, the first byte is a flag bit, and the flag bit I is set to 1 to indicate that it is a legal VxLAN header, and the rest of the flags are reserved.
  • the destination port number of the external user datagram protocol (UDP) header is 4789, which is the port of the default VxLAN parser; the source address and destination address in the outer IP header are filled with communication
  • the VTEP address of both parties, the rest of the protocol is the same as the traditional network.
  • DHCP dynamic host configuration protocol
  • DHCP The main function is to assign IP addresses to computers, so that devices can access the network, and it also has the function of managing devices in a certain local area network.
  • the DHCP protocol is actually a byte stream, and byte data in different positions represent different meanings.
  • DHCP can be divided into the following two components: (1) text part, which is the essential data in a DHCP packet; (2) additional option part, which is optional, namely "Option". It is usually decided whether to add it according to the actual scene requirements.
  • the Option part is directly inserted at the end of the DHCP packet, and it still belongs to the DHCP packet.
  • the function of Option is to extend the function of DHCP.
  • the DHCP protocol implements the function of managing devices in addition to simply assigning addresses, and different application scenarios often have different requirements. In order to meet these requirements, this kind of "Option" that can be customized by users is required. options.
  • the Option code can be used to distinguish identifiers for different purposes because it occupies 1 byte, so there are 256 types of Option in total, some of which are reserved values. Table 1 shows the description of each field in the DHCP message.
  • DHCP Discover Discover
  • DHCP Offer Offer
  • Request DHCP Request
  • ACK DHCP Acknowledgment
  • NAK Negative Acknowledgment
  • DHCP Discover When the DHCP client requests an address, it does not know the location of the DHCP server, so the DHCP client will broadcast the request message in the local network, and this message is the Discover message.
  • the purpose of the DHCP Discover message is to discover the DHCP server in the network, and all DHCP servers that receive the Discover message will send a response message, so that the DHCP client can know the location of the DHCP server in the network.
  • DHCP Offer After the DHCP server receives the Discover message, it will search for a suitable IP address in the configured address pool, plus the corresponding lease period and other configuration information (such as gateway, domain name system (domain name system, DNS) ) server, etc.), thereby constructing an Offer message and sending it to the user, informing the user that the server can provide an IP address for it.
  • configuration information such as gateway, domain name system (domain name system, DNS)
  • the DHCP client may receive many DHCP Offer messages, so it must choose one of these responses.
  • the client usually selects the first server that responds to the Offer message as its target server, and responds with a broadcast Request message to notify the selected server.
  • the DHCP client After the DHCP client successfully obtains the IP address, it will send a unicast Request message to the DHCP server to extend the lease period when 1/2 of the lease period of the address has passed. At 4 o'clock, a broadcast Request message is sent to extend the lease period.
  • the DHCP server After receiving the Request message, the DHCP server will check whether there is a corresponding lease record according to the user MAC carried in the Request message, and if so, send an ACK message as a response to notify the user that the allocated IP address can be used.
  • DHCP NAK If the DHCP server does not find a corresponding lease record after receiving the Request message or cannot normally allocate an IP address due to some reasons, it will send a NAK message as a response to notify the user that a suitable IP address cannot be allocated.
  • the master device and slave devices are directly connected through optical fibers, which cannot support communication across IP networks, and the deployment between network devices is not flexible.
  • the master device and the slave device need to communicate across the network.
  • the communication between devices in this scenario cannot be supported. Therefore, a network transmission method is needed to solve the problem of cross-network communication between the master device and the slave device.
  • the present application provides a network transmission method, which sends the IP address of the first OLT device and the IP address of the second OLT device to the first OLT device through a DHCP message, and between the first OLT device and the second OLT A communication tunnel can be established, so that the first OLT device and the second OLT device can cross an intermediate network, the deployment between network devices is more flexible, and the networking capability is enhanced.
  • the technical solution of the present application is introduced below.
  • FIG. 3 is a schematic flowchart of a network transmission method 300 provided by the present application, the method including:
  • Step 301 the first OLT device receives a Dynamic Host Configuration Protocol DHCP message from a second OLT device.
  • the DHCP message may include a first Internet Protocol IP address and a second IP address, wherein the first IP address is the IP address assigned to the first OLT device by the DHCP server, and the second IP address is the IP address of the second OLT device. IP address.
  • the DHCP message may also include an indication message, which is used to indicate the type of the tunnel message.
  • first OLT devices there may be one or more first OLT devices, and there may be one second OLT device.
  • the first OLT device may also be understood as a slave device
  • the second OLT device may also be understood as a master device.
  • Step 302 the first OLT device generates a corresponding first tunnel message according to the indication message.
  • the source address of the first tunnel message is the first IP address
  • the destination address of the first tunnel message is the second IP address
  • the IP address of the first OLT and the IP address of the second OLT can be sent to the first OLT device through a DHCP message, and the first OLT device can generate a corresponding tunnel message based on the indication message, and the source of the tunnel message
  • the address and the destination address are respectively the first OLT device and the second OLT device.
  • the second IP address is carried in the Option field of the DHCP message, or; the second IP address is carried in the server IP address field of the DHCP message, or; the second IP address is carried in the gateway IP address of the DHCP message in the address field.
  • a communication tunnel can be established between the first OLT device and the second OLT, so that the first OLT device and the second OLT device can cross the intermediate network, and the deployment between network devices is more flexible.
  • Enhanced networking capabilities can be provided.
  • the Option field in the DHCP message may include a third IP address and a fourth IP address
  • the payload part of the first tunnel message includes management data
  • the source address of the payload part is the third IP address.
  • the third IP address may be the management IP address assigned to the first OLT by the second OLT device
  • the fourth IP address may be the management IP address of the second OLT
  • the data payload part in the generated tunnel message in this application may also include management data, for example, the source address of the management data is the third IP address, and the destination address is the fourth IP address.
  • the management message is exchanged between the first OLT and the second OLT, it can be encapsulated into a tunnel message, which improves communication security.
  • the first OLT device and the second OLT device can exchange management messages based on the IP address of the management data, and the first OLT device and the second OLT device can be managed across an IP network.
  • the data payload part of the tunnel message may include service data
  • the source address of the data payload part is the IP address of the device that initiated the service data
  • the destination address of the data payload part is the service data The IP address of the service server corresponding to the data.
  • the source address of the service data may be the IP address of ONT device #1
  • the destination address of the service data may be the IP address of ONT device #2.
  • the service message can use the tunnel provided by this application, that is, the first OLT device and the second OLT device forward the service message.
  • the source address of the service data may also be the first IP address
  • the destination address of the service data may be the second IP address.
  • the data payload part in the generated tunnel message in this application may also include service data, for example, the source address of the service data is the IP address of the device that initiated the service data, and the service data The destination address is the IP address of the service server corresponding to the service data.
  • the service-type message is exchanged between the first OLT device and the second OLT, it may also be encapsulated into a tunnel message, which improves communication security. And the first OLT device and the second OLT device may transmit service packets based on the IP address of the service data.
  • the first OLT device may also receive the second tunnel packet from the second OLT device.
  • the source address of the second tunnel packet is the second IP address
  • the destination address of the second tunnel packet is the first IP address.
  • the first OLT device can decapsulate the second tunnel message to obtain the payload part of the second tunnel message, if the destination address of the payload part of the second tunnel message is the IP address of the first OLT device, the second An OLT equipment can resolve the payload part of this second tunnel message; If the destination address of the payload part of the second tunnel message is not the IP address of the first OLT equipment, the first OLT equipment can according to this second tunnel message The destination address of the payload part forwards the payload part of the second tunnel message.
  • the first OLT device in this application can decapsulate the second tunnel message from the second OLT, and determine whether to parse the message or forward the message according to the address of the data payload part in the second tunnel message.
  • FIG. 4 is a schematic flowchart of a network transmission method 400 provided by the present application, the method including:
  • Step 401 the remote OLT device (an example of the first OLT device) sends a DHCP message #1 to the head-end OLT device (an example of the second OLT device), and the DHCP message #1 can be used to request to discover the head-end OLT.
  • the head-end OLT receives the first information.
  • the remote OLT can send a DHCP Discover message to the head-end OLT, and the message is used to request to discover the head-end OLT.
  • Step 402 the head-end OLT receives the DHCP message #1, and determines the IP address of the remote OLT.
  • the head-end OLT may randomly allocate an IP address in the local address pool as the address of the remote OLT.
  • Step 403 the head-end OLT sends a DHCP message #2 to the remote OLT, and the DHCP message #2 may include the IP address of the remote OLT (an example of the first IP address).
  • the head-end OLT may send a DHCP Offer to the remote OLT, and the DHCP Offer includes the IP address of the remote OLT.
  • Step 404 the remote OLT receives the DHCP message #2.
  • Step 405 the remote OLT sends a DHCP message #3 to the head-end OLT, and the DHCP message #3 is used to confirm the target head-end OLT.
  • the remote OLT may send a DHCP Request to the head-end OLT, and the DHCP Request is used to confirm that the head-end OLT is the target head-end OLT.
  • Step 406 the head-end OLT sends a DHCP message #4 to the remote OLT, and the DHCP message #4 is used to notify the remote OLT that the allocated IP address can be used.
  • the head-end OLT may send a DHCPACK to the remote OLT, and the DHCPACK is used to notify the remote OLT that the allocated IP address can be used.
  • the DHCP message #4 may further include the second IP address and the indication message.
  • the first IP address is the IP address assigned to the remote OLT device by the DHCP server
  • the second IP address is the IP address of the head-end OLT device.
  • the indication message may be used to indicate the type of the tunnel packet.
  • the indication message may indicate that the type of the tunnel packet is an IP VPN tunnel packet, or that the type of the tunnel packet is a multi-protocol label switching MPLS tunnel packet.
  • the indication message may indicate which tunnel message is the tunnel message when the type of the tunnel message is an IP VPN tunnel message, for example, VLAN tunnel message, VxLAN tunnel message, segment routing version SRv6 tunnel message, general route encapsulation GRE tunnel packets and so on.
  • the indication message further includes parameters of the indicated tunnel packet type, and the tunnel packet parameters may be protocol parameters corresponding to the tunnel packet type.
  • the indication message may also indicate parameters of the VxLAN tunnel packet, for example, the tunnel endpoint IP address of the VxLAN, the VxLAN network identifier VNI, and the like.
  • the second IP address can be carried in the Option field of the DHCP message, or; the second IP address can be carried in the server IP address field of the DHCP message, or; the second IP address can be carried in the gateway of the DHCP message in the IP address field.
  • the Option field of the DHCP message #4 may further include a third IP address and a fourth IP address.
  • the third IP address may be the management IP address assigned to the first OLT by the second OLT device
  • the fourth IP address may be the management IP address of the second OLT.
  • the Option field of the DHCP message #4 may also include the VLAN used between the head-end OLT and the remote OLT.
  • Option 224 can carry the third IP address, the fourth IP address, VLAN (also can be understood as management parameters); parameter); as another example, Option226 may carry other pre-deployment parameters (eg, aggregation management mode, etc.).
  • the selected Option field is exemplary, and other reserved Option fields may also be used to transmit tunnel parameters and management parameters.
  • the third IP address, the fourth IP address, VLAN, the type of the tunnel message, and the parameters of the tunnel message type can be pre-configured by the network management element to the head-end OLT, or can be configured in other ways. No limit.
  • the head-end OLT may plan or determine management parameters and tunnel parameters in advance.
  • the tunnel packet is taken as an example of a VxLan tunnel packet.
  • a VxLan tunnel can be identified by a local VTEP address and a remote VTEP address.
  • a pair of VTEP addresses corresponds to a VXLAN tunnel.
  • the VxLAN header contains a VNI, and only virtual machines on the same VxLAN can communicate with each other.
  • the tunnel parameters may be, for example: VTEP IP address and VNI of VxLan.
  • the head-end OLT and the remote OLT can negotiate to establish an end-to-end VxLan tunnel.
  • the head-end OLT can automatically discover the remote OLT through the DHCP method, and can obtain management parameters (for example, the third IP address, the fourth IP address, VLAN) and the tunnel OLT from the head-end OLT.
  • management parameters for example, the third IP address, the fourth IP address, VLAN
  • Parameters for example, the type of the tunnel message, the parameters of the tunnel message type
  • no third-party equipment such as a cloud server
  • manual on-site configuration is required, which is more convenient and flexible, and saves costs.
  • Step 407 the remote OLT creates a local management interface, and the management interface is used for communication between the head-end OLT and the remote OLT.
  • the remote OLT may complete the creation of the local management interface according to the assigned management IP address (for example, the third IP address).
  • the remote OLT can establish a management interface locally. It can also be understood that the remote OLT establishes a logical access point (that is, a management interface) locally according to the assigned management IP address.
  • the management interface can be used for communication between the head-end OLT and the remote OLT.
  • the remote OLT can send and receive messages (such as management messages, service messages, etc.) with the head-end OLT through the management interface. .
  • its management interface can be pre-configured.
  • the remote OLT generates a corresponding tunnel packet (for example, tunnel packet #1) according to the indication message.
  • the source address of the tunnel packet #1 may be the first IP address
  • the destination address of the tunnel packet #1 may be the second IP address.
  • a communication tunnel can be established between the remote OLT device and the head-end OLT device to exchange various types of messages, and all types of messages are encapsulated by tunnel messages. Specifically, which tunnel packet is used for encapsulation may be indicated by an indication message.
  • the remote OLT can The type of the message and the parameters of the tunnel message type generate a VxLan tunnel message from the remote OLT to the head-end OLT.
  • the head-end OLT may also generate a corresponding tunnel packet, which will not be repeated here. That is to say, the remote OLT and the head-end OLT can exchange packets through the tunnel.
  • the remote OLT may also perform pre-deployment of other Layer 2 domains according to the carried pre-deployment parameters. For example, if there is an aggregation management mode, the remote OLT device can further determine which physical port is used to connect to the network (it can also be understood as which physical port the assigned third IP address can be specifically configured to), or whether it is Aggregate multiple physical ports to connect to the network.
  • steps 407 to 408 can be understood as establishing a communication tunnel between the remote OLT and the head-end OLT, and the destination addresses of the communication tunnels are the opposite ends.
  • Step 409 the remote OLT can establish a secure IP communication tunnel with the head-end OLT according to the security protocol.
  • the remote OLT and the head-end OLT can communicate based on a transport layer security protocol (transport layer security, TLS), an Internet security protocol (internet protocol security, IPsec), etc.
  • transport layer security transport layer security
  • IPsec Internet security protocol security
  • Step 410 the remote OLT sends an online request message to the head-end OLT, requesting to go online.
  • the remote OLT can send an online request message to the head-end OLT, and the message can be encapsulated into a tunnel message, and the source address of the tunnel message is the first IP address (that is, the IP address of the remote device) , the destination address of the tunnel message is the second IP address (that is, the IP address of the head-end device).
  • the source address of the data payload part of the online request message can be the third IP address (for example, the management IP address assigned to the remote OLT), and the destination address IP address is the fourth IP address (for example, the management IP address of the head-end OLT). IP address).
  • Step 411 the head-end OLT receives the online request message sent by the remote OLT, and determines to manage the remote OLT as a subordinate management device.
  • the head-end OLT device may first decapsulate the tunnel message, because the source address of the data payload part of the online request message may be a third IP address (such as , assigned to the management IP address of the remote OLT), and the destination address IP address is the fourth IP address (for example, the management IP address of the head-end OLT), then the head-end device can determine that the remote OLT is a slave device.
  • the source address of the data payload part of the online request message may be a third IP address (such as , assigned to the management IP address of the remote OLT)
  • the destination address IP address is the fourth IP address (for example, the management IP address of the head-end OLT)
  • step 412 the head-end OLT and the remote OLT exchange packets in the established tunnel to communicate.
  • the exchange message between the head-end OLT and the remote OLT can be encapsulated into a tunnel message, carried in the communication tunnel, and communicate based on a secure IP communication channel, ensuring information security.
  • network management network elements can configure services for logical network elements, and information such as configuration and query of a specific system (for example, a system composed of head-end OLT and remote OLT) can only be delivered to the head-end OLT.
  • a specific system for example, a system composed of head-end OLT and remote OLT
  • information such as configuration and query of a specific system can only be delivered to the head-end OLT.
  • the remote OLT For example, for the configuration of the remote OLT, it can be sent to the head-end OLT first, and then sent to the remote OLT through the head-end OLT.
  • the head-end OLT may send configuration messages to the remote OLT for configuration.
  • the messages exchanged between the head-end OLT and the remote OLT can be carried in the VxLan tunnel and communicate based on a secure IP communication channel, thereby ensuring information security.
  • the management message between the head-end OLT and the remote OLT can be encapsulated into a tunnel message (for example, can be encapsulated into a VxLan tunnel message type), and the source of the tunnel message
  • the address is the first IP address (ie, the IP address of the remote device), and the destination address of the tunnel packet is the second IP address (ie, the IP address of the head-end device).
  • the payload part of the tunnel message data includes management data, the source address of the payload part may be the management IP address assigned to the remote OLT, and the destination address of the payload part may be the management IP address of the head-end OLT.
  • the head-end OLT device After the head-end OLT device receives the management message, it can decapsulate the tunnel message first, and after determining that the destination address of the data payload part is its management IP address, the next step can be processed for the management message (for example, parse management data).
  • the remote OLT may also receive a management packet (for example, tunnel packet #2) from the head-end OLT, and the management packet may be encapsulated into tunnel packet #2.
  • a management packet for example, tunnel packet #2
  • the source address of the tunnel packet #2 is the second IP address
  • the destination address of the second tunnel packet is the first IP address.
  • the payload part of the tunnel message data includes management data
  • the source address of the payload part may be the management IP address of the head-end OLT
  • the destination address of the payload part may be the management IP address assigned to the remote OLT.
  • the remote OLT device After the remote OLT device receives the management message, it can first decapsulate the tunnel message, and after determining that the destination address of the data payload part is its management IP address, the management message can be processed in the next step (for example, parse management data).
  • the remote OLT and the head-end OLT in this application can exchange management messages based on the communication tunnel, and the remote OLT and the head-end OLT can be managed across the IP network.
  • the service packets between the head-end OLT and the remote OLT can use other tunnel packet types to encapsulate the service packets, and isolate them from the previous VxLan tunnel that transmits management packets.
  • the upstream service packets of the ONT can enter from the port of the remote OLT, and the remote OLT can transmit the upstream service packets to the head-end OLT based on the communication tunnel. OLT uplink port to send.
  • the types of downlink service packets and uplink service packets will not be described again.
  • the head-end OLT and the remote OLT are a logical unit as a whole.
  • the service message between the head-end OLT and the remote OLT can be encapsulated into a tunnel message
  • the source address of the tunnel message is the first IP address (that is, the IP address of the remote device)
  • the tunnel message The destination address of the text is the second IP address (that is, the IP address of the head-end device).
  • the source address of the service data may be the IP address of ONT device #1
  • the destination address of the service data may be the IP address of ONT device #2.
  • the service message can use the tunnel provided by this application, that is, the first OLT device and the second OLT device forward the service message.
  • the source address of the service data may be the IP address of ONT device #1, and the destination address of the service data may be the second IP address. Since the destination address of the service message is the head-end OLT, at this time, the head-end OLT can perform the next step of processing (for example, analyze service data) on the service message.
  • the data payload part in the generated tunnel message in this application may also include service data, for example, the source address of the service data is the IP address of the device that initiated the service data, and the service data The destination address is the IP address of the service server corresponding to the service data.
  • the service-type message is exchanged between the first OLT device and the second OLT, it may also be encapsulated into a tunnel message, which improves communication security. And the first OLT device and the second OLT device may transmit service packets based on the IP address of the service data.
  • step 413 may also be included, where the head-end OLT and the remote OLT perform keep-alive for the communication counterpart based on a keep-alive mechanism.
  • a keep-alive mechanism can be used to complete device keep-alive.
  • the head-end OLT can periodically send a message to the remote OLT, and the remote OLT responds. If the head-end device receives a response, it considers that the remote OLT is still there, but if it does not receive it, it considers that the remote OLT is disconnected (out of management). For example, keep-alive between devices can be done based on transmission control protocol.
  • the network transmission method provided by the embodiment of the present application has been described in detail above with reference to FIG. 2 to FIG. 4 .
  • the following describes the network transmission device provided by the embodiment of the present application with reference to FIG. 5 and FIG. 6 . It should be understood that the descriptions of the device embodiments correspond to the descriptions of the method embodiments. Therefore, for details that are not described in detail, reference may be made to the method embodiments above. For brevity, details are not repeated here.
  • each node such as a terminal device, includes a corresponding hardware structure and/or software module for performing each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software drives hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • the embodiment of the present application may divide the terminal device into functional modules according to the above method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
  • the above-mentioned integrated modules can be implemented in the form of hardware or in the form of software function modules. It should be noted that the division of modules in the embodiment of the present application is schematic, and is only a logical function division, and there may be other division methods in actual implementation. In the following, description will be made by taking the division of each functional module corresponding to each function as an example.
  • FIG. 5 is a schematic block diagram of a device 100 provided by an embodiment of the present application. As shown in the figure, the device 100 may include: a transceiver unit 110 and a processing unit 120 .
  • the device 100 may be the first OLT device in the above method embodiment, or may be a chip for realizing the function of the first OLT device in the above method embodiment. It should be understood that the device 100 may correspond to the first OLT device in the method 300 and the method 400 according to the embodiment of the present application, and the device 100 may execute the method corresponding to the first OLT device in the method 300 and the method 400 of the embodiment of the present application. A step of. It should be understood that the specific process for each unit to perform the above corresponding steps has been described in detail in the above method embodiments, and for the sake of brevity, details are not repeated here.
  • the transceiver unit is used to receive a Dynamic Host Configuration Protocol DHCP message
  • the DHCP message includes a first Internet Protocol IP address and a second IP address
  • the first IP address is the address assigned to the first OLT device by the DHCP server
  • the second IP address is the address of the second OLT device
  • the DHCP message also includes an indication message, the indication message is used to indicate the type of the tunnel packet
  • the processing unit is configured to generate For the corresponding first tunnel packet, the source address of the first tunnel packet is the first IP address, and the destination address of the first tunnel packet is the second IP address.
  • the transceiver unit is further configured to receive a second tunnel message, the source address of the second tunnel message is the second IP address, and the destination address of the second tunnel message is the the first IP address; the processing unit is further configured to decapsulate the second tunnel message to obtain the payload part of the second tunnel message; if the payload part of the second tunnel message The destination address is the IP address of the first OLT device, and the processing unit is used to resolve the payload part of the second tunnel message; otherwise, the processing unit is used to The destination address of the payload part forwards the payload part of the second tunnel message
  • the device 100 may be the second OLT device in the above method embodiment, or may be a chip for realizing the function of the second OLT device in the above method embodiment. It should be understood that the device 100 may correspond to the second OLT device in the method 300 and the method 400 according to the embodiment of the present application, and the device 100 may execute the method corresponding to the second OLT device in the method 300 and the method 400 of the embodiment of the present application. A step of. It should be understood that the specific process for each unit to perform the above corresponding steps has been described in detail in the above method embodiments, and for the sake of brevity, details are not repeated here.
  • the transceiver unit is used to send a Dynamic Host Configuration Protocol DHCP message
  • the DHCP message includes a first Internet Protocol IP address and a second IP address
  • the first IP address is assigned to the first OLT device by the DHCP server address
  • the second IP address is the address of the second OLT device
  • the DHCP message also includes an indication message, the indication message is used to indicate the type of the tunnel message; the indication message is used for the first OLT equipment Generate a corresponding first tunnel packet, where the source address of the first tunnel packet is the first IP address, and the destination address of the first tunnel packet is the second IP address.
  • the transceiver unit is further configured to receive a second tunnel message, the source address of the second tunnel message is the first IP address, and the destination address of the second tunnel message is the The second IP address; the processing unit is used to decapsulate the second tunnel message to obtain the payload part of the second tunnel message; if the purpose of the payload part of the second tunnel message The address is the IP address of the second OLT device, and the processing unit is used to resolve the payload part of the second tunnel message; otherwise, the processing unit is used to analyze the payload according to the second tunnel message Part of the destination address forwards the payload part of the second tunnel message.
  • FIG. 6 is a schematic block diagram of a device 200 provided by an embodiment of the present application.
  • the device 200 includes: at least one processor 220 .
  • the processor 220 is coupled with the memory for executing instructions stored in the memory to send signals and/or receive signals.
  • the device 200 further includes a memory 230 for storing instructions.
  • the apparatus 200 further includes a transceiver 210, and the processor 220 controls the transceiver 210 to send signals and/or receive signals.
  • processor 220 and the memory 230 may be combined into one processing device, and the processor 220 is configured to execute the program codes stored in the memory 230 to implement the above functions.
  • the memory 230 may also be integrated in the processor 220 , or be independent of the processor 220 .
  • the transceiver 210 may include a transceiver (or a receiver) and a transmitter (or a transmitter).
  • the transceiver 210 may be a communication interface or an interface circuit.
  • the transceiver 210 in the device 200 may correspond to the transceiver unit 110 in the device 100
  • the processor 220 in the device 200 may correspond to the processing unit 120 in the device 100 .
  • each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software.
  • the steps of the methods disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware. To avoid repetition, no detailed description is given here.
  • the processor in the embodiment of the present application may be an integrated circuit chip, which has a signal processing capability.
  • each step of the above-mentioned method embodiments may be completed by an integrated logic circuit of hardware in a processor or instructions in the form of software.
  • the above-mentioned processor can be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application-specific integrated circuit (application-specific integrated circuit, ASIC), a field-programmable gate array (field-programmable gate array, FPGA) or Other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
  • DSP digital signal processor
  • ASIC application-specific integrated circuit
  • FPGA field-programmable gate array
  • Other programmable logic devices discrete gate or transistor logic devices, discrete hardware components.
  • a general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like.
  • the steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register.
  • the storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.
  • the memory in the embodiments of the present application may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories.
  • the non-volatile memory can be read-only memory (read-only memory, ROM), programmable read-only memory (programmable ROM, PROM), erasable programmable read-only memory (erasable PROM, EPROM), electrically programmable Erases programmable read-only memory (electrically EPROM, EEPROM) or flash memory.
  • Volatile memory can be random access memory (RAM), which acts as external cache memory.
  • RAM random access memory
  • static RAM static random access memory
  • dynamic RAM dynamic random access memory
  • DRAM dynamic random access memory
  • synchronous dynamic random access memory synchronous DRAM, SDRAM
  • double data rate synchronous dynamic random access memory double data rate SDRAM, DDR SDRAM
  • enhanced synchronous dynamic random access memory enhanced SDRAM, ESDRAM
  • synchronous connection dynamic random access memory direct ram-bus RAM, DR RAM
  • direct ram-bus RAM direct ram-bus RAM
  • the present application also provides a computer program product, the computer program product stores computer program code, and when the computer program code is run on the computer, the computer executes method 300 and method 400 The method of any one of the embodiments in the embodiments.
  • the present application also provides a computer-readable medium, the computer-readable medium stores program code, and when the program code is run on the computer, the computer is made to execute method 300 and method 400 The method of any one embodiment in the example.
  • the present application further provides a system, which includes the foregoing device.
  • all or part of them may be implemented by software, hardware, firmware or any combination thereof.
  • software When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
  • the computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the computer, the processes or functions according to the embodiments of the present application will be generated in whole or in part.
  • the computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website, computer, server or data center Transmission to another website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device such as a server or a data center integrated with one or more available media.
  • the available medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a high-density digital video disc (digital video disc, DVD)), or a semiconductor medium (for example, a solid state disk (solid state disc, SSD)) etc.
  • a magnetic medium for example, a floppy disk, a hard disk, a magnetic tape
  • an optical medium for example, a high-density digital video disc (digital video disc, DVD)
  • a semiconductor medium for example, a solid state disk (solid state disc, SSD)
  • the network-side equipment in each of the above device embodiments corresponds to the terminal equipment and the network-side equipment or terminal equipment in the method embodiments, and the corresponding modules or units perform corresponding steps, for example, the communication unit (transceiver) executes the receiving method in the method embodiments. Or the step of sending, other steps besides sending and receiving may be performed by a processing unit (processor). For the functions of the specific units, reference may be made to the corresponding method embodiments. Wherein, there may be one or more processors.
  • a component may be, but is not limited to being, a process running on a processor, a processor, an object, an executable, a thread of execution, a program, and/or a computer.
  • an application running on a computing device and the computing device can be components.
  • One or more components can reside within a process and/or thread of execution and a component can be localized on one computer and/or distributed between two or more computers.
  • these components can execute from various computer readable media having various data structures stored thereon.
  • a component may, for example, be based on a signal having one or more packets of data (e.g., data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet via a signal interacting with other systems). Communicate through local and/or remote processes.
  • packets of data e.g., data from two components interacting with another component between a local system, a distributed system, and/or a network, such as the Internet via a signal interacting with other systems.
  • the disclosed systems, devices and methods may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

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

本申请提供了一种网络传输方法和设备,该方法包括:第一光线路终端OLT可通过动态主机配置协议DHCP消息接收DHCP服务器分配给自己的互联网IP地址以及对端第二OLT设备的IP地址,并且可以基于DHCP消息中的指示消息生成对应的隧道报文,该隧道报文的源地址和目的地址分别为第一OLT的IP地址和第二OLT的IP地址。从而,使得第一OLT设备和第二OLT设备之间可以跨中间网络进行通信,网络设备之间的部署更加灵活,增强了组网能力。

Description

网络传输方法和设备
本申请要求于2021年9月23日提交中国国家知识产权局、申请号202111112878.0、申请名称为“网络传输方法和设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信领域,更具体地,涉及一种网络传输方法和设备。
背景技术
随着网络规模不断扩大,用户对骨干链路的带宽和可靠性提出越来越高的要求。在传统技术中,常用更换高速率的接口板或更换支持高速率接口板的设备的方式来增加带宽,但这种方案需要付出高额的费用,而且不够灵活。采用链路聚合技术可以在不进行硬件升级的条件下,通过将多个物理接口捆绑为一个逻辑接口,达到增加链路带宽的目的。
聚合管理,可以是指部署在中心局的光线路终端(optical line terminal,OLT)设备作为主设备,通过光纤直连接入光网络单元,光网络单元作为远端小容量从设备,不再作为独立网元,即,不再为光网络单元分配管理互联网协议(internet protocol,IP)地址),而由主设备直接管理。从设备可以看作是主设备上部署在远端的业务板,其功能特性与主设备的业务板保持一致。
由上可知,上述聚合管理方案中主设备和从设备之间是通过光纤直连,无法支持跨IP网络进行通信,网络设备之间的部署不灵活。
发明内容
本申请提供一种网络传输方法和设备,通过DHCP消息将第一OLT设备的IP地址和第二OLT设备的IP地址发送给第一OLT设备,第一OLT设备和第二OLT之间可以建立通信隧道,从而使得第一OLT设备和第二OLT设备之间可以跨中间网络进行通信,网络设备之间的部署更加灵活,增强了组网能力。
第一方面,提供了一种网络传输方法,该方法包括:第一光线路终端OLT设备从第二OLT设备接收动态主机配置协议DHCP消息,DHCP消息中包括第一互联网协议IP地址、第二IP地址,第一IP地址为DHCP服务器分配给第一OLT设备的地址,第二IP地址为第二OLT设备的地址,DHCP消息中还包括指示消息,指示消息用于指示隧道报文的类型;第一OLT设备根据指示消息生成对应的第一隧道报文,第一隧道报文的源地址为第一IP地址,第一隧道报文的目的地址为第二IP地址。
基于上述技术方案,本申请中,通过DHCP消息携带IP地址,可以在第一OLT设备和第二OLT之间建立通信隧道,从而使得第一OLT设备和第二OLT设备之间可以跨中间网络,网络设备之间的部署更加灵活,增强了组网能力。
需要说明的是,本申请中,第一OLT设备也可以理解为从设备,第二OLT设备也可以理解为主设备。
需要说明的是,本申请的技术方案也适用于路由器之间的传输、或者服务器之间的传输等等。
在一种可能的实现方式中,所述DHCP消息中的选项Option字段中包括第三IP地址和第四IP地址,所述第一隧道报文的净荷部分包括管理数据,所述净荷部分的源地址为所述第三IP地址,所述净荷部分的目的地址为所述第四IP地址。
基于上述技术方案,本申请中,在所生成的隧道报文中的数据净荷部分还可以包括管理数据,例如,该管理数据的源地址为第三IP地址,目的地址为第四IP地址。此时,如果第一OLT设备和第二OLT之间交互管理类报文,可以封装成隧道报文,提高了通信安全。并且第一OLT设备和第二OLT设备可以基于管理数据的IP地址,交互管理报文,第一OLT设备和第二OLT设备之间可以跨IP网络进行管理。
另外,本申请中,可以通过DHCP方式,使得第二OLT可以自动发现第一OLT,第一OLT设备从第二OLT获取管理参数(例如,第三IP地址、第四IP地址、VLAN),无需第三方设备(如云服务器)也无需人工现场配置,更加方便灵活,节约成本。
在一种可能的实现方式中,所述第一隧道报文的数据净荷部分包括业务数据,所述净荷部分的源地址为发起所述业务数据的设备的IP地址,所述净荷部分的目的地址为所述业务数据对应的业务服务器的IP地址。
在一种可能的实现方式中,该方法还包括:所述第一OLT设备接收来自所述第二OLT设备的第二隧道报文,所述第二隧道报文的源地址为所述第二IP地址,所述第二隧道报文的目的地址为所述第一IP地址;所述第一OLT设备对所述第二隧道报文进行解封装得到所述第二隧道报文的净荷部分;如果所述第二隧道报文的净荷部分的目的地址是所述第一OLT设备的IP地址,所述第一OLT设备解析所述第二隧道报文的净荷部分;否则,所述第一OLT设备根据所述第二隧道报文的净荷部分的目的地址将所述第二隧道报文的净荷部分进行转发。
基于上述技术方案,本申请中,本申请中在所生成的隧道报文中的数据净荷部分还可以包括业务数据,例如,该业务数据的源地址为发起该业务数据的设备的IP地址,该业务数据的目的地址为该业务数据对应的业务服务器的IP地址。此时,如果第一OLT设备和第二OLT之间交互业务类报文,也可以封装成隧道报文,提高了通信安全。并且第一OLT设备和第二OLT设备可以基于业务数据的IP地址,传递业务报文。
另外,本申请中第一OLT设备可以解封装来自第二OLT的第二隧道报文,并且根据第二隧道报文中数据净荷部分的地址确定解析报文还是转发报文。
在一种可能的实现方式中,所述第二IP地址携带在所述DHCP消息的选项Option字段中,或者;所述第二IP地址携带在所述DHCP消息的服务器IP地址字段中,或者;所述第二IP地址携带在所述DHCP消息的网关IP地址字段中。
基于上述技术方案,本申请中,本申请中第二IP地址可以在DHCP消息的字段中灵活携带。
在一种可能的实现方式中,所述第一隧道报文的类型包括:互联网协议虚拟专用网IP VPN隧道报文、多协议标签交换MPLS隧道报文,其中,所述IP VPN隧道报文包括以下一项:VLAN隧道报文、VxLAN隧道报文、分段路由版本SRv6隧道报文、通用路由封装GRE 隧道报文。
在一种可能的实现方式中,所述指示消息中还包括所述第一隧道报文的参数,所述第一隧道报文的参数为所述第一隧道报文的类型所对应的协议参数,所述隧道报文为VxLAN隧道报文时,所述隧道报文参数包括:虚拟扩展局域网VxLAN的隧道端点IP地址、VxLAN网络标识VNI。
基于上述技术方案,本申请中,DHCP消息中还可以包括隧道报文类型和隧道报文类型对应的隧道参数,以便于第一OLT设备将报文(例如,管理类报文、业务类报文等)封装成隧道报文,提高通信安全。
在一种可能的实现方式中,该方法还包括:所述第一OLT设备和所述第二OLT设备根据保活机制,以使得所述第一OLT设备在所述第二OLT设备的管理范畴之内。
基于上述技术方案,本申请中,通信双方可以通过保活机制确认对端是否掉线,可以提高通信效率。
第二方面,提供了一种网络传输方法,该方法包括:第二光线路终端OLT设备向第一OLT设备发送动态主机配置协议DHCP消息,DHCP消息中包括第一互联网协议IP地址、第二IP地址,第一IP地址为DHCP服务器分配给第一OLT设备的地址,第二IP地址为第二OLT设备的地址,DHCP消息中还包括指示消息,指示消息用于指示隧道报文的类型;指示消息用于第一OLT设备生成对应的第一隧道报文,第一隧道报文的源地址为第一IP地址,第一隧道报文的目的地址为第二IP地址。
在一种可能的实现方式中,所述DHCP消息中的选项Option字段中包括第三IP地址和第四IP地址,所述第一隧道报文的净荷部分包括管理数据;所述净荷部分的源地址为所述第三IP地址,所述净荷部分的目的地址为所述第四IP地址。
在一种可能的实现方式中,所述净荷部分的源地址为发起所述业务数据的设备的IP地址,所述净荷部分的目的地址为所述业务数据对应的业务服务器的IP地址。
在一种可能的实现方式中,所述第二OLT设备从所述第一OLT设备接收第二隧道报文,所述第二隧道报文的源地址为所述第一IP地址,所述第二隧道报文的目的地址为所述第二IP地址;所述第二OLT设备对所述第二隧道报文进行解封装得到所述第二隧道报文的净荷部分;如果所述第二隧道报文的净荷部分的目的地址是所述第二OLT设备的IP地址,所述第二OLT设备解析所述第二隧道报文的净荷部分;否则,所述第二OLT设备根据所述第二隧道报文的净荷部分的目的地址将所述第二隧道报文的净荷部分进行转发。
在一种可能的实现方式中,所述第二IP地址携带在所述DHCP消息的选项Option字段中,或者;所述第二IP地址携带在所述DHCP消息的服务器IP地址字段中,或者;所述第二IP地址携带在所述DHCP消息的网关IP地址字段中。
在一种可能的实现方式中,所述第一隧道报文的类型包括:互联网协议虚拟专用网IP VPN隧道报文、多协议标签交换MPLS隧道报文,其中,所述IP VPN隧道报文包括以下一项:VLAN隧道报文、VxLAN隧道报文、分段路由版本SRv6隧道报文、通用路由封装GRE隧道报文。
在一种可能的实现方式中,所述指示消息中还包括所述第一隧道报文的参数,所述第一隧道报文的参数为所述第一隧道报文的类型所对应的协议参数,所述隧道报文为VxLAN隧道报文时,所述隧道报文参数包括:虚拟扩展局域网VxLAN的隧道端点IP地址、VxLAN 网络标识VNI。
在一种可能的实现方式中,该方法还包括:所述第一OLT设备和所述第二OLT设备根据保活机制,以使得所述第一OLT设备在所述第二OLT设备的管理范畴之内。
第三方面,提供了一种网络传输设备,该设备包括用于执行第一方面或第一方面中任意一种可能的实现方式中的方法的单元。
第四方面,提供了一种网络传输设备,该设备包括用于执行第二方面或第二方面中任意一种可能的实现方式中的方法的单元。
第五方面,提供了一种网络传输设备,包括处理器。该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第一方面中任一种可能实现方式中的方法。可选地,该设备还包括存储器。可选地,该设备还包括通信接口,处理器与通信接口耦合。
在一种实现方式中,该网络传输设备为光线路终端设备。当该设备为终端设备时,该通信接口可以是收发器,或,输入/输出接口。
在另一种实现方式中,该设备为配置于终端设备中的芯片。当该设备为配置于终端设备中的芯片时,该通信接口可以是输入/输出接口。
在一种实现方式中,该设备为宿主节点设备。当该设备为宿主节点设备时,该通信接口可以是收发器,或,输入/输出接口。
在另一种实现方式中,该设备为配置于宿主节点中的芯片。当该设备为配置于宿主节点中的芯片时,该通信接口可以是输入/输出接口。可选地,该收发器可以为收发电路。可选地,该输入/输出接口可以为输入/输出电路。
第六方面,提供一种网络传输设备,包括处理器。该处理器与存储器耦合,可用于执行存储器中的指令,以实现上述第二方面中任一种可能实现方式中的方法。可选地,该设备还包括存储器。可选地,该设备还包括通信接口,处理器与通信接口耦合。
在一种实现方式中,该设备为网络设备。当该设备为网络设备时,该通信接口可以是收发器,或,输入/输出接口。
在另一种实现方式中,该设备为配置于网络设备中的芯片。当该设备为配置于网络设备中的芯片时,该通信接口可以是输入/输出接口。
在一种实现方式中,该设备为宿主节点设备。当该设备为宿主节点设备时,该通信接口可以是收发器,或,输入/输出接口。
在另一种实现方式中,该设备为配置于宿主节点设备中的芯片。当该设备为配置于宿主节点设备中的芯片时,该通信接口可以是输入/输出接口。
可选地,该收发器可以为收发电路。可选地,该输入/输出接口可以为输入/输出电路。
第七方面,提供了一种处理器,包括:输入电路、输出电路和处理电路。所述处理电路用于通过所述输入电路接收信号,并通过所述输出电路发射信号,使得所述处理器执行第一方面和第二方面中任一种可能实现方式中的方法。
在具体实现过程中,上述处理器可以为一个或多个芯片,输入电路可以为输入管脚,输出电路可以为输出管脚,处理电路可以为晶体管、门电路、触发器和各种逻辑电路等。输入电路所接收的输入的信号可以是由例如但不限于收发器接收并输入的,输出电路所输出的信号可以是例如但不限于输出给发射器并由发射器发射的,且输入电路和输出电路可以是同一电路,该电路在不同的时刻分别用作输入电路和输出电路。本申请实施例对处理器及各种电 路的具体实现方式不做限定。
第八方面,提供了一种处理设备,包括处理器和存储器。该处理器用于读取存储器中存储的指令,并可通过收发器接收信号,通过发射器发射信号,以执行第一方面和第二方面中任一种可能实现方式中的方法。
可选地,所述处理器为一个或多个,所述存储器为一个或多个。
可选地,所述存储器可以与所述处理器集成在一起,或者所述存储器与处理器分离设置。
在具体实现过程中,存储器可以为非瞬时性(non-transitory)存储器,例如只读存储器(read only memory,ROM),其可以与处理器集成在同一块芯片上,也可以分别设置在不同的芯片上,本申请实施例对存储器的类型以及存储器与处理器的设置方式不做限定。
应理解,相关的数据交互过程例如发送指示信息可以为从处理器输出指示信息的过程,接收能力信息可以为处理器接收输入能力信息的过程。具体地,处理器输出的数据可以输出给发射器,处理器接收的输入数据可以来自收发器。其中,发射器和收发器可以统称为收发器。
上述第八方面中的处理设备可以是一个或多个芯片。该处理设备中的处理器可以通过硬件来实现也可以通过软件来实现。当通过硬件实现时,该处理器可以是逻辑电路、集成电路等;当通过软件来实现时,该处理器可以是一个通用处理器,通过读取存储器中存储的软件代码来实现,该存储器可以集成在处理器中,可以位于该处理器之外,独立存在。
第九方面,提供了一种计算机程序产品,所述计算机程序产品包括:计算机程序(也可以称为代码,或指令),当所述计算机程序被运行时,使得计算机执行上述第一方面和第二方面中任一种可能实现方式中的方法。
第十方面,提供了一种计算机可读介质,所述计算机存储介质存储有计算机程序(也可以称为代码,或指令),当其在计算机上运行时,使得计算机执行上述第一方面和第二方面中任一种可能实现方式中的方法。
第十一方面,提供了一种芯片系统,包括处理器,用于从存储器中调用并运行计算机程序,使得安装有该芯片系统的设备执行上述第一方面和第二方面各实现方式中的方法。
第十二方面,提供了一种网络传输系统,所述通信系统包括第三方面涉及的设备、第四方面涉及的设备。
附图说明
图1是本申请适用的一种场景示意图。
图2是本申请提供的一种隧道报文的示意图。
图3是本申请提供的网络传输方法300的流程图。
图4是本申请提供的网络传输方法400的流程图。
图5是本申请提供的一种网络传输设备100的示意性框图。
图6是本申请提供的一种网络传输设备200的示意性框图。
具体实施方式
下面将结合附图,对本申请中的技术方案进行描述。
下面首先结合图1介绍本申请实施例涉及网络系统架构。
图1是本申请实施例适用的一种系统架构图,如图所示,该网络架构主要包括主设备、从设备、主设备与从设备之间的网络、网管系统以及虚拟专用网(virtual private network,VPN),下面分别介绍各个设备。
主设备:本申请中的主设备也可以理解为头端(headend)光线路终端(optical line terminal,OLT)。本申请中的主设备为核心管理单元,只有一个,聚合系统的配置都通过主设备向从设备分发的。
从设备,本申请中的从设备也可以理解为远端(remote)OLT,可以存在多个。
本申请中,主设备和从设备,共同组成了聚合系统,对于网管而言,就是一个逻辑网元。
主设备和从设备之间的网络,可以是IP网络,也可以是5G网络或者IP回传网络(承担基站和核心网设备之间的通信任务)。
需要说明的是,头端OLT和远端OLT之间的网络不属于聚合系统的逻辑网元。
网管系统:本申请中的网管系统可以对聚合系统进行管理,对于网管系统而言,聚合系统(包括主设备和从设备)是一个独立的网元。
VPN隧道:本申请中的VPN隧道可以用于主设备和从设备之间交互管理报文、协议报文以及业务报文等等。
为了便于理解本申请的技术方案,首下面对本申请涉及到的部分专业术语进行简单的说明。
OLT:本申请中的OLT可以是电信的局端设备,用于连接光纤干线,作用相当于传统通信网中的交换机或路由器,是外网入口和内网出入口的一个设备。OLT的功能是实现流量调度、缓冲区控制、以及提供面向用户的无源光纤网络接口和分配带宽。简单来说就是实现两个功能,对上行数据而言,完成无源光网络(positive optical network,PON)的上行接入;对下行数据而言,将获取到的数据通过光数据网络(optical data network,ODN)分配到所有光网络单元(optical network unit,ONU),实现对光网络终端(optical network terminal,ONT)的控制和管理。
ONU:ONU一般具有两点作用:对OLT发送的广播进行选择性接收,若需要接收该数据要对OLT进行接收响应;对用户需要发送的以太网数据进行收集和缓存,按照被分配的发送窗口向OLT端发送该缓存数据。ONU与最终用户之间可能还有其他网络。
ONT:俗称“光猫”,应用于最终用户,可以为用户提供语音、数据和多媒体业务。ONT是ONU的组成部分。
通过上面介绍,可以将OLT理解为管理端,ONU理解为终端。ONU的业务开通都是通过OLT下发的,两者是主从关系。一个OLT通过分光器可以挂多个ONU。
VPN:是指依靠互联网服务提供商和网络服务提供商,在公共网络中建立的虚拟专用通信网络。VPN可以理解为通过一个公用网络(例如,因特网)建立一个临时的、安全的连接,是一条可以穿过公用网络的安全的、稳定的隧道。VPN是对企业内部网的扩展,例如,VPN可以帮助远程用户、公司分支机构、商业伙伴及供应商同公司的内部网建立可信的安全连接,并保证数据的安全传输。VPN可用于不断增长的移动用户的全球因特网接入,以实现安全连接;可用于实现企业网站之间安全通信的虚拟专用线路,用于经济有效地连接到商业伙伴和用户的安全外联网虚拟专用网。
虚拟局域网(virtual local area network,VLAN):可以理解为是一组逻辑上的设备和用户, 这些设备和用户并不受物理位置的限制,可以根据功能、部门及应用等因素将它们组织起来,相互之间的通信就好像它们在同一个网段中一样。VLAN可以解决交换机在进行局域网互连时无法限制广播的问题,这种技术可以把一个局域网(local area network,LAN)划分成多个逻辑的LAN,即,VLAN,每个VLAN是一个广播域,VLAN内的主机间通信就和在一个LAN内一样,而VLAN间则不能直接互通,这样,广播报文被限制在一个VLAN内。
通过上面介绍,可知,VPN主要是把分布在不同地方的网络整合在一起,逻辑上好像都在同一个局域网内;而VLAN可以把一个局域网进一步分割、隔离成更小的网络。
虚拟扩展局域网(virtual extensible local area network,VxLAN):是对传统VLAN协议的一种扩展。VxLAN的特点是将二层的以太帧封装到用户数据报协议(user datagram protocol,UDP中,并在三层网络中传输。VXLAN本质上是一种隧道技术,在源网络设备与目的网络设备之间的IP网络上,建立一条逻辑隧道,将用户侧报文经过特定的封装后通过这条隧道转发。从用户的角度来看,接入网络的服务器就像是连接到了一个虚拟的二层交换机的不同端口上,可以方便地通信。
VLAN作为传统的网络隔离技术,在标准定义中VLAN的数量只有4000个左右,无法满足大型数据中心的租户间隔离需求。另外,VLAN的二层范围一般较小且固定,无法支持虚拟机大范围的动态迁移。VxLAN则弥补了VLAN的上述不足,一方面通过VxLAN中的24比特,可以提供多达16M租户的标识能力,远大于VLAN的4000;另一方面,VxLAN本质上在两台交换机之间构建了一条穿越数据中心基础IP网络的虚拟隧道,将数据中心网络虚拟成一个巨型“二层交换机”,满足虚拟机大范围动态迁移的需求。
下面介绍一下有关隧道技术的概念。
隧道技术:隧道(tunneling)技术是一种通过使用互联网络的基础设施在网络之间建立一条虚拟链路以传递数据的方式。使用隧道传递的数据可以是不同协议的协议数据单元(protocol data unit,PDU),隧道可以将其他协议的PDU重新封装后通过网络发送,新的PDU提供路由信息,以便通过互联网传递被封装的数据。由于PDU经过重新封装,使得数据的发送方和接收方就像在一条专有“隧道”中进行数据传输和通信,为了建立隧道,隧道两端的通信方必须使用相同的隧道协议。
隧道技术的实质是用一种网络层的协议来传输另一种网络层协议的封装技术。即利用一种网络传输协议,将其他协议产生的数据报文封装在它自己的报文中,然后在网络中传输。其基本功能是封装和加密。使用隧道传递的数据可以是不同协议的数据帧或包。隧道协议将这些其他协议的数据帧或包重新封装在新的包头中发送。新的包头提供了路由信息,从而使封装的负载数据能够通过互联网络传递。被封装的数据包在隧道的两个端点之间通过公共互联网络进行路由。被封装的数据包在公共互联网络上传递时所经过的逻辑路径称为隧道。隧道技术是指包括数据封装、传输和解封装在内的全过程。
需要说明的是,下述介绍中的出现的“隧道”,也可以理解“隧道报文”,以下不再赘述。
VPN隧道:通常指在VPN节点间或VPN节点与用户节点间构建的传VPN数据的虚拟连接。通过隧道可以将数据从一个VPN节点公开传到另一个节点。
VxLAN隧道:用于VxLAN报文的转发,用本地VxLAN隧道端点(VxLAN tunnel end point,VTEP)地址+远端VTEP地址进行标识,一对VTEP可以确定一条VxLAN隧道。VTEP是是VxLAN隧道的起点和终点,VxLAN对用户原始数据帧的封装和解封装均在VTEP上进行的。 VTEP既可以是一台独立的网络设备,也可以是在服务器中的虚拟交换机。源服务器发出的原始数据帧,在VTEP上被封装成VXLAN格式的报文,并在IP网络中传递到另外一个VTEP上,并经过解封转还原出原始的数据帧,最后转发给目的服务器。
VxLAN头部包含有一个VxLAN网络标识(VxLAN network identifier,VNI),只有在同一个VxLAN上的虚拟机之间才能相互通信。VNI在数据包中占24比特,故可支持1600万个VxLAN的同时存在,远多于VLAN的4094个,因此可适应大规模租户的部署。VTEP间的这条VxLAN隧道可以被两个网络虚拟边界(network virtualization edge,NVE)设备间的所有VNI所公用。一个VNI代表了一个租户,属于不同VNl的虚拟机之间不能直接进行二层通信。VxLAN报文封装时,给VNl分配了足够的空间使其可以支持海量租户的隔离。
需要说明的是,本申请中的隧道(也可以理解“隧道报文”),不限于上述介绍的VPN隧道和VxLan隧道,也可以是其他3层网络虚拟化(network virtualization over layer 3,NVO3)技术相关的隧道,例如:分段路由版本6(segment routing version 6,SRv6)隧道、通用路由封装(generic routing encapsulation,GRE)隧道等,也可以是多协议标签交换(multi-protocol label switching,MPLS)隧道。
以VxLAN为例,图2示出了VxLAN隧道报文。VxLAN通过将逻辑网络中通信的数据帧(也可以理解为“数据净荷”)封装在物理网络中进行传输,封装和解封装的过程由VTEP节点完成。VxLAN将逻辑网络中的数据帧添加VxLAN首部后,封装在物理网络中的UDP报文中传送,VXLAN首部的格式图2所示。如图2中的(a)所示,VxLAN首部由8个字节组成,第1个字节为标志位,其中标志位I设为1表示是一个合法的VxLAN首部,其余标志则保留,在传输过程中必须置为0;第2-4字节为保留部分,第5-7字节为VxLAN标识符,用来表示唯一的一个逻辑网络;第8个字节同样为保留字段,暂未使用。VXLAN传输过程中,将逻辑链路网络的数据帧添加VxLAN首部后,依次添加外部UDP首部、外部IP首部后,便可以在物理网络中传输,图2中的(b)为数据帧的封装格式。对于VxLAN隧道报文,外部用户数据报协议(user datagram protocol,UDP)首部的目的端口号为4789,该数值为默认VxLAN解析程序的端口;外层IP首部中的源地址和目的地址均填写通信双方的VTEP地址,协议的其余部分和传统网络相同。
下面简单介绍一下动态主机配置协议(dynamic host configuration protocol,DHCP)。
DHCP:主要作用就是给计算机分配IP地址,使得设备能够访问网络,同时它还兼有管理某一局域网内设备的功能。DHCP协议其实就是一段字节流,不同位置的字节数据代表着不同的含义。DHCP可以分成以下两个组成部分:(1)正文部分,正文部分就是一个DHCP包中必不可少的数据;(2)附加选项部分,附加选项是可选的,即“Option”。通常会根据实际的场景需求来决定是否添加。Option部分是直接插在DHCP包的末尾的,它仍旧属于DHCP包。Option的作用就是用于扩展DHCP的功能的。因为DHCP协议除了简单的分配地址外还要实现管理设备的功能,而不同应用场景往往又会催生出不同的需求,为了满足这些需求,就需要这种可以由用户自定义内容的“Option”可选项了。Option代码可以用来区分不同用途的标识符,因为它占1个字节,因此Option总共有256种,其中有一部分为预留值,表1示出了DHCP消息对各个字段的描述。
表1 DHCP消息中各个字段的描述
Figure PCTCN2022120491-appb-000001
DHCP共有八种报文,分别为DHCP发现(Discover)报文、DHCP提供(Offer)报文、DHCP请求(Request)报文、DHCP肯定应答(ACK)报文、DHCP否定应答(NAK)报文等等,下面简要介绍各个报文的作用。
DHCP Discover:DHCP客户端请求地址时,并不知道DHCP服务器的位置,因此DHCP客户端会在本地网络内以广播方式发送请求报文,这个报文就是Discover报文。DHCP Discover报文的目的是发现网络中的DHCP服务器,所有收到Discover报文的DHCP服务器都会发送回应报文,DHCP客户端据此可以知道网络中存在的DHCP服务器的位置。
DHCP Offer:DHCP服务器收到Discover报文后,就会在所配置的地址池中查找一个合适的IP地址,加上相应的租约期限和其他配置信息(如网关、域名系统(domain name system,DNS)服务器等),从而构造一个Offer报文,发送给用户,告知用户本服务器可以为其提供IP地址。
DHCP Request:DHCP客户端可能会收到很多DHCP Offer报文,所以必须在这些回应中选择一个。客户端通常选择第一个回应Offer报文的服务器作为自己的目标服务器,并回应一个广播Request报文,通告选择的服务器。DHCP客户端成功获取IP地址后,在地址使用租期过去1/2时,会向DHCP服务器发送单播Request报文续延租期,如果没有收到DHCP ACK 报文,在租期过去3/4时,发送广播Request报文续延租期。
DHCP ACK:DHCP服务器收到Request报文后,根据Request报文中携带的用户MAC来查找有没有相应的租约记录,如果有则发送ACK报文作为回应,通知用户可以使用分配的IP地址。
DHCP NAK:如果DHCP服务器收到Request报文后,没有发现有相应的租约记录或者由于某些原因无法正常分配IP地址,则发送NAK报文作为回应,通知用户无法分配合适的IP地址。
目前,聚合管理方案中主设备和从设备之间是通过光纤直连,无法支持跨IP网络进行通信,网络设备之间的部署不灵活。在图1的场景中,主设备和从设备之间需要跨网络进行通信,按照目前聚合管理的技术,无法支持该场景中设备间的通信。因此,需要一种网络传输方法解决主设备和从设备跨网络通信的问题。
有鉴于此,本申请提供了一种网络传输方法,通过DHCP消息将第一OLT设备的IP地址和第二OLT设备的IP地址发送给第一OLT设备,第一OLT设备和第二OLT之间可以建立通信隧道,从而使得第一OLT设备和第二OLT设备之间可以跨中间网络,网络设备之间的部署更加灵活,增强了组网能力。下面介绍本申请的技术方案。
图3本申请提供的一种网络传输方法300的示意性流程图,该方法包括:
步骤301,第一光线路终端OLT设备从第二OLT设备接收动态主机配置协议DHCP消息。
本申请中,DHCP消息中可以包括第一互联网协议IP地址、第二IP地址,其中,第一IP地址为DHCP服务器分配给第一OLT设备的IP地址,第二IP地址为第二OLT设备的IP地址。
本申请中,DHCP消息中还可以包括指示消息,指示消息用于指示隧道报文的类型。
需要说明的是,本申请中,第一OLT设备可以有一个或者多个,第二OLT设备可以有一个。
需要说明的是,本申请中,第一OLT设备也可以理解为从设备,第二OLT设备也可以理解为主设备。
步骤302,第一OLT设备根据指示消息生成对应的第一隧道报文。
本申请中,第一隧道报文的源地址为第一IP地址,第一隧道报文的目的地址为第二IP地址。
本申请中,可以通过DHCP消息将第一OLT的IP地址和第二OLT的IP地址发送给第一OLT设备,第一OLT设备可以基于指示消息生成对应的隧道报文,该隧道报文的源地址和目的地址分别为第一OLT设备和第二OLT设备。
本申请中,第二IP地址携带在DHCP消息的选项Option字段中,或者;第二IP地址携带在所述DHCP消息的服务器IP地址字段中,或者;第二IP地址携带在DHCP消息的网关IP地址字段中。
基于本申请的技术方案,可以在第一OLT设备和第二OLT之间建立通信隧道,从而使得第一OLT设备和第二OLT设备之间可以跨中间网络,网络设备之间的部署更加灵活,增强了组网能力。
在一些实施例中,DHCP消息中的Option字段中可以包括第三IP地址和第四IP地址,所述第一隧道报文的净荷部分包括管理数据,该净荷部分的源地址为第三IP地址,该净荷部 分的目的地址为第四IP地址。
作为一个示例,本申请中第三IP地址可以是第二OLT设备分配给第一OLT的管理IP地址,第四IP地址可以是第二OLT的管理IP地址。
基于上述技术方案,本申请中在所生成的隧道报文中的数据净荷部分还可以包括管理数据,例如,该管理数据的源地址为第三IP地址,目的地址为第四IP地址。此时,如果第一OLT设备和第二OLT之间交互管理类报文,可以封装成隧道报文,提高了通信安全。并且第一OLT设备和第二OLT设备可以基于管理数据的IP地址,交互管理报文,第一OLT设备和第二OLT设备之间可以跨IP网络进行管理。
在另一些实施例中,隧道报文的数据净荷部分可以包括业务数据,该数据净荷部分的源地址为发起该业务数据的设备的IP地址,该数据净荷部分的目的地址为该业务数据对应的业务服务器的IP地址。
作为一个示例,该业务数据的源地址可以为ONT设备#1的IP地址,该业务数据的目的地址可以为ONT设备#2的IP地址。此时,该业务类报文可以利用本申请所提供的隧道,即,第一OLT设备和第二OLT设备对该业务类报文进行转发。
作为一个示例,该业务数据的源地址也可以为第一IP地址,该业务数据的目的地址可以为第二IP地址。此时,相当于第一OLT设备和第二OLT设备之间可以交互业务报文。
基于上述技术方案,本申请中在所生成的隧道报文中的数据净荷部分还可以包括业务数据,例如,该业务数据的源地址为发起该业务数据的设备的IP地址,该业务数据的目的地址为该业务数据对应的业务服务器的IP地址。此时,如果第一OLT设备和第二OLT之间交互业务类报文,也可以封装成隧道报文,提高了通信安全。并且第一OLT设备和第二OLT设备可以基于业务数据的IP地址,传递业务报文。
在另一些实施例中,第一OLT设备还可以接收来自第二OLT设备的第二隧道报文。本申请中,第二隧道报文的源地址为第二IP地址,第二隧道报文的目的地址为第一IP地址。第一OLT设备可以对第二隧道报文进行解封装得到所述第二隧道报文的净荷部分,如果第二隧道报文的净荷部分的目的地址是第一OLT设备的IP地址,第一OLT设备可以解析该第二隧道报文的净荷部分;如果第二隧道报文的净荷部分的目的地址不是第一OLT设备的IP地址,第一OLT设备可以根据该第二隧道报文的净荷部分的目的地址将第二隧道报文的净荷部分进行转发。
基于上述技术方案,本申请中第一OLT设备可以解封装来自第二OLT的第二隧道报文,并且根据第二隧道报文中数据净荷部分的地址确定解析报文还是转发报文。
本实施例的方案主要是基于第一OLT设备进行描述的,第二OLT的技术方案也是对应于本实施例的,不再赘述。
需要说明的是,本申请提供的技术方案例如也适用于路由器之间的通信,或者服务器之间的通信等等。
图4是本申请提供的一种网络传输方法400的示意性流程图,该方法包括:
步骤401,远端OLT设备(第一OLT设备的一例)向头端OLT设备(第二OLT设备的一例)发送DHCP消息#1,DHCP消息#1可以用于请求发现头端OLT。对应的,头端OLT接收第一信息。
作为一个示例,远端OLT可以向头端OLT发送DHCP Discover报文,该报文用于请求 发现头端OLT。
步骤402,头端OLT接收DHCP消息#1,确定远端OLT的IP地址。
作为一个示例,头端OLT可以在本地地址池中随机分配一个IP地址,作为远端OLT的地址。
步骤403,头端OLT向远端OLT发送DHCP消息#2,DHCP消息#2可以包括远端OLT的IP地址(第一IP地址的一例)。
作为一个示例,头端OLT可以向远端OLT发送DHCP Offer,DHCP Offer中包括远端OLT的IP地址。
步骤404,远端OLT接收DHCP消息#2。
步骤405,远端OLT向头端OLT发送DHCP消息#3,DHCP消息#3用于确认目标头端OLT。
作为一个示例,远端OLT可以向头端OLT发送DHCP Request,DHCP Request用于确认该头端OLT为目标头端OLT。
步骤406,头端OLT向远端OLT发送DHCP消息#4,DHCP消息#4用于通知远端OLT设备可以使用分配的IP地址。
作为一个示例,头端OLT可以向远端OLT发送DHCPACK,DHCPACK用于通知远端OLT设备可以使用分配的IP地址。
本申请中,作为一个示例,DHCP消息#4中还可以包括第二IP地址和指示消息。
本申请中,第一IP地址为DHCP服务器分配给远端OLT设备的IP地址,第二IP地址为头端OLT设备的IP地址。
本申请中,指示消息可以用于指示隧道报文的类型。作为一个示例,指示消息可以指示隧道报文的类型为IP VPN隧道报文,或者,隧道报文的类型为多协议标签交换MPLS隧道报文。具体地,指示消息可以指示,隧道报文类型为IP VPN隧道报文时为哪种隧道报文,例如,VLAN隧道报文、VxLAN隧道报文、分段路由版本SRv6隧道报文、通用路由封装GRE隧道报文等等。
本申请中,指示消息中还包括所指示的隧道报文类型的参数,该隧道报文的参数可以是隧道报文类型所对应的协议参数。作为一个示例,如果指示消息中指示隧道报文的类型为VxLAN隧道报文时,指示消息中还可以指示VxLAN隧道报文参数,例如,VxLAN的隧道端点IP地址、VxLAN网络标识VNI等等。
本申请中,第二IP地址可以携带在DHCP消息的选项Option字段中,或者;第二IP地址可以携带在DHCP消息的服务器IP地址字段中,或者;第二IP地址可以携带在DHCP消息的网关IP地址字段中。
本申请中,DHCP消息#4的Option字段中还可以包括第三IP地址和第四IP地址。
作为一个示例,本申请中第三IP地址可以是第二OLT设备分配给第一OLT的管理IP地址,第四IP地址可以是第二OLT的管理IP地址。可选的,DHCP消息#4的Option字段中还可以包括头端OLT和远端OLT之间所使用的VLAN。
例如,Option 224可以携带第三IP地址、第四IP地址、VLAN(也可以理解为管理参数);又例如,Option225可以携带隧道报文的类型、隧道报文类型的参数(也可以理解为隧道参数);又例如,Option226可以携带其他预部署参数(如,聚合管理模式等)。需要说明的是,本申 请中,所述选取的Option字段为示例性的,也可以使用其他预留Option字段传递隧道参数和管理参数。
本申请中,第三IP地址、第四IP地址、VLAN、隧道报文的类型、隧道报文类型的参数可以是网管网元预先配置给头端OLT,也可以通过其他方式进行配置,本申请不做限定。例如,头端OLT可以预先规划或者确定管理参数和隧道参数。
本实施例中,以隧道报文为VxLan隧道报文为例,如前所述,VxLan隧道可以用本地VTEP地址和远端VTEP地址进行标识。一对VTEP地址就对应着一条VXLAN隧道。VxLAN头部包含有一个VNI,只有在同一个VxLAN上的虚拟机之间才能相互通信。此时,隧道参数例如可以是:VxLan的VTEP IP地址、VNI。根据VxLan的VTEP IP地址、VNI,头端OLT和远端OLT就能协商建立起一条端到端的VxLan隧道。
本申请,步骤401~步骤406中,通过DHCP方式,使得头端OLT可以自动发现远端OLT,并且可以从头端OLT获取管理参数(例如,第三IP地址、第四IP地址、VLAN)和隧道参数(例如,隧道报文的类型、隧道报文类型的参数),无需第三方设备(如云服务器)也无需人工现场配置,更加方便灵活,节约成本。
步骤407,远端OLT创建本地管理接口,管理接口用于头端OLT和远端OLT之间进行通信。
作为一个示例,远端OLT可以根据分配到的管理IP地址(例如,第三IP地址),完成本地管理接口的创建。
本申请中,远端OLT获取到第三IP地址后,可以在本地建立管理接口。也可以理解为,远端OLT根据分配到的管理IP地址在本地建立一个逻辑接入点(即,管理接口)。管理接口可以用于头端OLT和远端OLT进行通信,例如,远端OLT可以通过管理接口与头端OLT之间可以进行报文(例如,管理类报文、业务类报文等等)收发。
相应的,对于头端OLT而言,其管理接口可以预先配置。
步骤408,远端OLT根据指示消息生成对应的隧道报文(例如,隧道报文#1)。
本申请中,隧道报文#1的源地址可以为第一IP地址,隧道报文#1的目的地址可以为第二IP地址。也可以理解为,本申请中远端OLT设备和头端OLT设备之间可以创建一条通信隧道,交互各类报文,并且各类报文都采用隧道报文进行封装。具体地,采用何种隧道报文进行封装,可以由指示消息进行指示。
作为一个示例,如果指示消息中指示隧道报文的类型为VxLAN隧道报文,并且指示报文参数包括:VxLAN的隧道端点IP地址、VxLAN网络标识VNI时,远端OLT便可以根据指示消息中隧道报文的类型、隧道报文类型的参数,生成远端OLT到头端OLT的VxLan隧道报文。
相应的,对于头端OLT也可以生成对应的隧道报文,此处不再赘述。也就是说,远端OLT和头端OLT之间可以通过该隧道交互报文。
可选的,如果DHCP消息中有预部署参数,则远端OLT还可以根据携带的预部署参数,进行其他二层域的预部署。例如,若带了聚合管理模式,则远端OLT设备还可以进一步确定到底用哪个物理端口连接到网络(也可以理解为分配的第三IP地址可以具体配置到哪个物理端口),或者,是否是将多个物理端口进行聚合从而连接到网络。
本申请中,步骤407~步骤408,可以理解为远端OLT和头端OLT之间建立通信隧道, 通信隧道的目的地址分别为对端。
步骤409,远端OLT可以根据安全协议与头端OLT建立安全的IP通信隧道。
例如,远端OLT和头端OLT可以基于传输层安全协议(transport layer security,TLS),互联网安全协议(internet protocol security,IPsec)等进行通信。
步骤410,远端OLT向头端OLT发送上线请求报文,请求上线。
本申请中,远端OLT可以向头端OLT发送上线请求报文,该报文可以封装成隧道报文,该隧道报文的源地址为第一IP地址(即,远端设备的IP地址),该隧道报文的目的地址为第二IP地址(即,头端设备的IP地址)。该上线请求报文的数据净荷部分的源地址可以为第三IP地址(例如,分配给远端OLT的管理IP地址),目的地址IP地址为第四IP地址(例如,头端OLT的管理IP地址)。
步骤411,头端OLT接收到远端OLT发送的上线请求报文,确定将远端OLT作为从属管理设备进行管理。
具体地,头端OLT设备接收远端OLT设备的上线请求报文后,可以首先对隧道报文解封装,由于该上线请求报文的数据净荷部分的源地址可以为第三IP地址(例如,分配给远端OLT的管理IP地址),目的地址IP地址为第四IP地址(例如,头端OLT的管理IP地址),此时头端设备便可确定该远端OLT为从设备。
步骤412,头端OLT和远端OLT在建立的隧道中交互报文,进行通信。
例如,头端OLT和远端OLT的交互报文可以封装为隧道报文,承载在通信隧道中,并基于安全的IP通信通道进行通信,保证了信息的安全性。
本申请中,网管网元可以对逻辑网元进行业务配置,网管对具体系统(例如,头端OLT和远端OLT构成的系统)的配置、查询等信息,只能可以下发到头端OLT。例如,对于远端OLT的配置,可以先到发送到头端OLT,然后再通过头端OLT下发给远端OLT。例如,对于配置到远端OLT的配置参数,头端OLT可以将配置消息,下发到远端OLT进行配置。此时,头端OLT和远端OLT双方交互的报文,可以承载在VxLan隧道中,并基于安全的IP通信通道进行通信,从而,保证了信息的安全性。
作为一个示例,对于管理类报文而言,头端OLT和远端OLT之间的管理报文可以封装成隧道报文(例如,可以封装成VxLan隧道报文类型),该隧道报文的源地址为第一IP地址(即,远端设备的IP地址),该隧道报文的目的地址为第二IP地址(即,头端设备的IP地址)。该隧道报文数据净荷部分包括管理数据,该净荷部分的源地址可以为分配给远端OLT的管理IP地址,该净荷部分的目的地址可以为头端OLT的管理IP地址。头端OLT设备接收到管理类报文后,可以先对隧道报文解封装,确定数据净荷部分的目的地址为其管理IP地址后,可以对该管理报文进行下一步的处理(例如,解析管理数据)。
作为另一个示例,对于管理类报文而言,远端OLT也可以接收来自头端OLT的管理报文(例如,隧道报文#2),该管理报文可以封装成隧道报文#2。此时,隧道报文#2的源地址为第二IP地址,第二隧道报文的目的地址为第一IP地址。该隧道报文数据净荷部分包括管理数据,该净荷部分的源地址可以为头端OLT的管理IP地址,该净荷部分的目的地址可以为分配给远端OLT的管理IP地址。远端OLT设备接收到管理类报文后,可以先对隧道报文解封装,确定数据净荷部分的目的地址为其管理IP地址后,可以对该管理报文进行下一步的处理(例如,解析管理数据)。
基于上述技术方案,本申请中远端OLT和头端OLT可以基于通信隧道,交互管理报文,远端OLT和头端OLT设备之间可以跨IP网络进行管理。
对于业务报文而言,头端OLT和远端OLT之间的业务报文可以采用其他的隧道报文类型对业务报文进行封装,和前面传递管理类报文的VxLan隧道隔离。例如,对于ONT上行的业务报文,可以从远端OLT的端口进入,远端OLT可以基于通信隧道将上行业务报文传送到头端OLT,出隧道后,头端OLT可以还原报文,从头端OLT上行口进行发送。下行业务报文和上行业务报文类型,不再赘述。对于网管系统而言,头端OLT和远端OLT整体上为一个逻辑单元。
作为一个示例,头端OLT和远端OLT之间的业务报文可以封装成隧道报文,该隧道报文的源地址为第一IP地址(即,远端设备的IP地址),该隧道报文的目的地址为第二IP地址(即,头端设备的IP地址)。在一种可能的实现方式中,该业务数据的源地址可以为ONT设备#1的IP地址,该业务数据的目的地址可以为ONT设备#2的IP地址。此时,该业务类报文可以利用本申请所提供的隧道,即,第一OLT设备和第二OLT设备对该业务类报文进行转发。在另一种可能的实现方式中,该业务数据的源地址可以为ONT设备#1的IP地址,该业务数据的目的地址可以为第二IP地址。由于该业务报文的目的地址为头端OLT,此时,头端OLT可以对该业务报文进行下一步的处理(例如,解析业务数据)。
基于上述技术方案,本申请中在所生成的隧道报文中的数据净荷部分还可以包括业务数据,例如,该业务数据的源地址为发起该业务数据的设备的IP地址,该业务数据的目的地址为该业务数据对应的业务服务器的IP地址。此时,如果第一OLT设备和第二OLT之间交互业务类报文,也可以封装成隧道报文,提高了通信安全。并且第一OLT设备和第二OLT设备可以基于业务数据的IP地址,传递业务报文。
可选的,在一些实施例中,还可以包括步骤413,头端OLT和远端OLT基于保活机制,对通信对端进行保活。
本申请中,考虑到头端OLT和远端OLT建立通信连接后,并不会一直存在数据交互,有些连接会在数据交互完毕后,主动释放连接,而有些不会,那么在长时间无数据交互的时间段内,交互双方都有可能出现掉电、死机等各种情况。为了解决这个问题,可以利用保活机制来完成设备保活。例如,头端OLT可以定时发一个消息给远端OLT,远端OLT回应。头端设备如果收到回应,就认为远端OLT还在,但如果收不到,就认为远端OLT断了(脱离管理)。例如,可以基于传输控制协议完成设备间的保活。
以上,结合图2至图4详细说明了本申请实施例提供的网络传输方法。下面结合图5和图6介绍本申请实施例提供的网络传输设备。应理解,装置实施例的描述与方法实施例的描述相互对应,因此,未详细描述的内容可以参见上文方法实施例,为了简洁,这里不再赘述。
上述主要从各个节点之间交互的角度对本申请实施例提供的方案进行了介绍。可以理解的是,各个节点,例如终端设备,为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对终端设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本申请实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。下面以采用对应各个功能划分各个功能模块为例进行说明。
图5是本申请实施例提供的设备100的示意性框图。如图所示,该设备100可以包括:收发单元110和处理单元120。
在一种可能的设计中,该设备100可以是上文方法实施例中的第一OLT设备,也可以是用于实现上文方法实施例中第一OLT设备的功能的芯片。应理解,该设备100可对应于根据本申请实施例的方法300、方法400中的第一OLT设备,该设备100可以执行本申请实施例的方法300、方法400中的第一OLT设备所对应的步骤。应理解,各单元执行上述相应步骤的具体过程在上述方法实施例中已经详细说明,为了简洁,在此不再赘述。
具体地,收发单元用于接收动态主机配置协议DHCP消息,所述DHCP消息中包括第一互联网协议IP地址、第二IP地址,所述第一IP地址为DHCP服务器分配给第一OLT设备的地址,所述第二IP地址为第二OLT设备的地址,所述DHCP消息中还包括指示消息,所述指示消息用于指示隧道报文的类型;所述处理单元用于根据所述指示消息生成对应的第一隧道报文,所述第一隧道报文的源地址为所述第一IP地址,所述第一隧道报文的目的地址为所述第二IP地址。
在一些实施例中,所述收发单元还用于接收第二隧道报文,所述第二隧道报文的源地址为所述第二IP地址,所述第二隧道报文的目的地址为所述第一IP地址;所述处理单元还用于对所述第二隧道报文进行解封装得到所述第二隧道报文的净荷部分;如果所述第二隧道报文的净荷部分的目的地址是所述第一OLT设备的IP地址,所述处理单元用于解析所述第二隧道报文的净荷部分;否则,所述处理单元用于根据所述第二隧道报文的净荷部分的目的地址将所述第二隧道报文的净荷部分进行转发
在一种可能的设计中,该设备100可以是上文方法实施例中的第二OLT设备,也可以是用于实现上文方法实施例中第二OLT设备的功能的芯片。应理解,该设备100可对应于根据本申请实施例的方法300、方法400中的第二OLT设备,该设备100可以执行本申请实施例的方法300、方法400中的第二OLT设备所对应的步骤。应理解,各单元执行上述相应步骤的具体过程在上述方法实施例中已经详细说明,为了简洁,在此不再赘述。
具体地,所述收发单元用于发送动态主机配置协议DHCP消息,所述DHCP消息中包括第一互联网协议IP地址、第二IP地址,所述第一IP地址为DHCP服务器分配给第一OLT设备的地址,所述第二IP地址为第二OLT设备的地址,所述DHCP消息中还包括指示消息,所述指示消息用于指示隧道报文的类型;所述指示消息用于第一OLT设备生成对应的第一隧道报文,所述第一隧道报文的源地址为所述第一IP地址,所述第一隧道报文的目的地址为所述第二IP地址。
在一些实施例中,所述收发单元还用于接收第二隧道报文,所述第二隧道报文的源地址为所述第一IP地址,所述第二隧道报文的目的地址为所述第二IP地址;所述处理单元用于对所述第二隧道报文进行解封装得到所述第二隧道报文的净荷部分;如果所述第二隧道报文的净荷部分的目的地址是所述第二OLT设备的IP地址,所述处理单元用于解析所述第二隧 道报文的净荷部分;否则,所述处理单元用于根据所述第二隧道报文的净荷部分的目的地址将所述第二隧道报文的净荷部分进行转发。
图6是本申请实施例提供的设备200的示意性框图。如图所示,该设备200包括:至少一个处理器220。该处理器220与存储器耦合,用于执行存储器中存储的指令,以发送信号和/或接收信号。可选地,该装置200还包括存储器230,用于存储指令。可选的,该装置200还包括收发器210,处理器220控制收发器210发送信号和/或接收信号。
应理解,上述处理器220和存储器230可以合成一个处理装置,处理器220用于执行存储器230中存储的程序代码来实现上述功能。具体实现时,该存储器230也可以集成在处理器220中,或者独立于处理器220。
还应理解,收发器210可以包括收发器(或者称,接收机)和发射器(或者称,发射机)。收发器210有可以是通信接口或者接口电路。
具体的,该装置200中的收发器210可以对应于装置100中的收发单元110,该装置200中的处理器220可对应于装置100中的处理单元120。
应理解,各收发器处理器执行上述相应步骤的具体过程在上述方法实施例中已经详细说明,为了简洁,在此不再赘述。
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。
应注意,本申请实施例中的处理器可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法实施例的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。
可以理解,本申请实施例中的存储器可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(read-only memory,ROM)、可编程只读存储器(programmable ROM,PROM)、可擦除可编程只读存储器(erasable PROM,EPROM)、电可擦除可编程只读存储器(electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(random access memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(static RAM,SRAM)、动态随机存取存储器(dynamic RAM,DRAM)、同步动态随机存取存储 器(synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(double data rate SDRAM,DDR SDRAM)、增强型同步动态随机存取存储器(enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(synch-link DRAM,SLDRAM)和直接内存总线随机存取存储器(direct ram-bus RAM,DR RAM)。应注意,本文描述的系统和方法的存储器旨在包括但不限于这些和任意其它适合类型的存储器。
根据本申请实施例提供的方法,本申请还提供一种计算机程序产品,该计算机程序产品上存储有计算机程序代码,当该计算机程序代码在计算机上运行时,使得该计算机执行方法300、方法400实施例中任意一个实施例的方法。
根据本申请实施例提供的方法,本申请还提供一种计算机可读介质,该计算机可读介质存储有程序代码,当该程序代码在计算机上运行时,使得该计算机执行方法300、方法400实施例中任意一个实施例的方法。
根据本申请实施例提供的方法,本申请还提供一种系统,其包括前述的设备。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质(例如,软盘、硬盘、磁带)、光介质(例如,高密度数字视频光盘(digital video disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disc,SSD))等。
上述各个装置实施例中网络侧设备与终端设备和方法实施例中的网络侧设备或终端设备对应,由相应的模块或单元执行相应的步骤,例如通信单元(收发器)执行方法实施例中接收或发送的步骤,除发送、接收外的其它步骤可以由处理单元(处理器)执行。具体单元的功能可以参考相应的方法实施例。其中,处理器可以为一个或多个。
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在计算设备上运行的应用和计算设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每 个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
所述领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (24)

  1. 一种网络传输方法,其特征在于,包括:
    第一光线路终端OLT设备从第二OLT设备接收动态主机配置协议DHCP消息,所述DHCP消息中包括第一互联网协议IP地址、第二IP地址,所述第一IP地址为DHCP服务器分配给所述第一OLT设备的地址,所述第二IP地址为所述第二OLT设备的地址,所述DHCP消息中还包括指示消息,所述指示消息用于指示隧道报文的类型;
    所述第一OLT设备根据所述指示消息生成对应的第一隧道报文,所述第一隧道报文的源地址为所述第一IP地址,所述第一隧道报文的目的地址为所述第二IP地址。
  2. 根据权利要求1所述的方法,其特征在于,所述DHCP消息中的选项Option字段中包括第三IP地址和第四IP地址,所述第一隧道报文的净荷部分包括管理数据,所述净荷部分的源地址为所述第三IP地址,所述净荷部分的目的地址为所述第四IP地址。
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一隧道报文的数据净荷部分包括业务数据,所述净荷部分的源地址为发起所述业务数据的设备的IP地址,所述净荷部分的目的地址为所述业务数据对应的业务服务器的IP地址。
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,
    所述第二IP地址携带在所述DHCP消息的选项Option字段中,或者;
    所述第二IP地址携带在所述DHCP消息的服务器IP地址字段中,或者;
    所述第二IP地址携带在所述DHCP消息的网关IP地址字段中。
  5. 根据权利要求1至4中任一项所述的方法,其特征在于,所述第一隧道报文的类型包括:互联网协议虚拟专用网IP VPN隧道报文、多协议标签交换MPLS隧道报文,
    其中,所述IP VPN隧道报文包括以下一项:虚拟局域网VLAN隧道报文、虚拟扩展局域网VxLAN隧道报文、分段路由版本SRv6隧道报文、通用路由封装GRE隧道报文。
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述指示消息中还包括所述第一隧道报文的参数,
    所述第一隧道报文的参数为所述第一隧道报文的类型所对应的协议参数,所述隧道报文为VxLAN隧道报文时,所述隧道报文参数包括:VxLAN的隧道端点IP地址、VxLAN网络标识VNI。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一OLT设备接收来自所述第二OLT设备的第二隧道报文,所述第二隧道报文的源地址为所述第二IP地址,所述第二隧道报文的目的地址为所述第一IP地址;
    所述第一OLT设备对所述第二隧道报文进行解封装得到所述第二隧道报文的净荷部分;
    如果所述第二隧道报文的净荷部分的目的地址是所述第一OLT设备的IP地址,所述第一OLT设备解析所述第二隧道报文的净荷部分;否则,所述第一OLT设备根据所述第二隧道报文的净荷部分的目的地址将所述第二隧道报文的净荷部分进行转发。
  8. 一种网络传输方法,其特征在于,包括:
    第二光线路终端OLT设备向第一OLT设备发送动态主机配置协议DHCP消息,所述DHCP消息中包括第一互联网协议IP地址、第二IP地址,所述第一IP地址为DHCP服务器分配给所述第一OLT设备的地址,所述第二IP地址为所述第二OLT设备的地址,所述DHCP 消息中还包括指示消息,所述指示消息用于指示隧道报文的类型;
    所述指示消息用于所述第一OLT设备生成对应的第一隧道报文,所述第一隧道报文的源地址为所述第一IP地址,所述第一隧道报文的目的地址为所述第二IP地址。
  9. 根据权利要求8所述的方法,其特征在于,所述DHCP消息中的选项Option字段中包括第三IP地址和第四IP地址,所述第一隧道报文的净荷部分包括管理数据;所述净荷部分的源地址为所述第三IP地址,所述净荷部分的目的地址为所述第四IP地址。
  10. 根据权利要求8或9所述的方法,其特征在于,
    所述第一隧道报文的数据净荷部分包括业务数据,所述净荷部分的源地址为发起所述业务数据的设备的IP地址,所述净荷部分的目的地址为所述业务数据对应的业务服务器的IP地址。
  11. 根据权利要求8至10中任一项所述的方法,其特征在于,
    所述第二IP地址携带在所述DHCP消息的选项Option字段中,或者;
    所述第二IP地址携带在所述DHCP消息的服务器IP地址字段中,或者;
    所述第二IP地址携带在所述DHCP消息的网关IP地址字段中。
  12. 根据权利要求8至11中任一项所述的方法,其特征在于,所述第一隧道报文的类型包括:互联网协议虚拟专用网IP VPN隧道报文、多协议标签交换MPLS隧道报文,
    其中,所述IP VPN隧道报文包括以下一项:虚拟局域网VLAN隧道报文、虚拟扩展局域网VxLAN隧道报文、分段路由版本SRv6隧道报文、通用路由封装GRE隧道报文。
  13. 一种网络传输设备,其特征在于,包括:收发单元和处理单元,
    所述收发单元用于接收动态主机配置协议DHCP消息,所述DHCP消息中包括第一互联网协议IP地址、第二IP地址,所述第一IP地址为DHCP服务器分配给第一OLT设备的地址,所述第二IP地址为第二OLT设备的地址,所述DHCP消息中还包括指示消息,所述指示消息用于指示隧道报文的类型;
    所述处理单元用于根据所述指示消息生成对应的第一隧道报文,所述第一隧道报文的源地址为所述第一IP地址,所述第一隧道报文的目的地址为所述第二IP地址。
  14. 根据权利要求13所述的设备,其特征在于,所述DHCP消息中的选项Option字段中包括第三IP地址和第四IP地址,所述第一隧道报文的净荷部分包括管理数据;所述净荷部分的源地址为所述第三IP地址,所述净荷部分的目的地址为所述第四IP地址。
  15. 根据权利要求13或14所述的设备,其特征在于,
    所述第一隧道报文的数据净荷部分包括业务数据,所述净荷部分的源地址为发起所述业务数据的设备的IP地址,所述净荷部分的目的地址为所述业务数据对应的业务服务器的IP地址。
  16. 根据权利要求13至15中任一项所述的设备,其特征在于,
    所述第二IP地址携带在所述DHCP消息的选项Option字段中,或者;
    所述第二IP地址携带在所述DHCP消息的服务器IP地址字段中,或者;
    所述第二IP地址携带在所述DHCP消息的网关IP地址字段中。
  17. 根据权利要求13至16中任一项所述的设备,其特征在于,所述第一隧道报文的类型包括:互联网协议虚拟专用网IP VPN隧道报文、多协议标签交换MPLS隧道报文,
    其中,所述IP VPN隧道报文包括以下一项:虚拟局域网VLAN隧道报文、虚拟扩展局 域网VxLAN隧道报文、分段路由版本SRv6隧道报文、通用路由封装GRE隧道报文。
  18. 一种网络传输设备,其特征在于,包括:收发单元,
    所述收发单元用于发送动态主机配置协议DHCP消息,所述DHCP消息中包括第一互联网协议IP地址、第二IP地址,所述第一IP地址为DHCP服务器分配给第一OLT设备的地址,所述第二IP地址为第二OLT设备的地址,所述DHCP消息中还包括指示消息,所述指示消息用于指示隧道报文的类型;
    所述指示消息用于第一OLT设备生成对应的第一隧道报文,所述第一隧道报文的源地址为所述第一IP地址,所述第一隧道报文的目的地址为所述第二IP地址。
  19. 根据权利要求18所述的设备,其特征在于,所述DHCP消息中的附加选项Option字段中包括第三IP地址和第四IP地址,所述第一隧道报文的净荷部分包括管理数据;所述净荷部分的源地址为所述第三IP地址,所述净荷部分的目的地址为所述第四IP地址。
  20. 根据权利要求18或19所述的设备,其特征在于,
    所述第一隧道报文的数据净荷部分包括业务数据,所述净荷部分的源地址为发起所述业务数据的设备的IP地址,所述净荷部分的目的地址为所述业务数据对应的业务服务器的IP地址。
  21. 根据权利要求18至20中任一项所述的设备,其特征在于,
    所述第二IP地址携带在所述DHCP消息的选项Option字段中,或者;
    所述第二IP地址携带在所述DHCP消息的服务器IP地址字段中,或者;
    所述第二IP地址携带在所述DHCP消息的网关IP地址字段中。
  22. 根据权利要求18至21中任一项所述的设备,其特征在于,所述第一隧道报文的类型包括:互联网协议虚拟专用网IP VPN隧道报文、多协议标签交换MPLS隧道报文,
    其中,所述IP VPN隧道报文包括以下一项:虚拟局域网VLAN隧道报文、虚拟扩展局域网VxLAN隧道报文、分段路由版本SRv6隧道报文、通用路由封装GRE隧道报文。
  23. 根据权利要求18至22中任一项所述的设备,其特征在于,
    所述收发单元还用于接收第二隧道报文,所述第二隧道报文的源地址为所述第一IP地址,所述第二隧道报文的目的地址为所述第二IP地址;
    所述处理单元用于对所述第二隧道报文进行解封装得到所述第二隧道报文的净荷部分;
    如果所述第二隧道报文的净荷部分的目的地址是所述第二OLT设备的IP地址,所述处理单元用于解析所述第二隧道报文的净荷部分;否则,所述处理单元用于根据所述第二隧道报文的净荷部分的目的地址将所述第二隧道报文的净荷部分进行转发。
  24. 一种网络传输设备,其特征在于,包括至少一个处理器,所述至少一个处理器用于执行存储器中存储的计算机程序,以使得所述设备实现如权利要求1至7或8至12中任一项所述的方法。
PCT/CN2022/120491 2021-09-23 2022-09-22 网络传输方法和设备 Ceased WO2023046006A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
EP22872051.2A EP4383656A4 (en) 2021-09-23 2022-09-22 NETWORK TRANSMISSION METHOD AND DEVICE

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111112878.0 2021-09-23
CN202111112878.0A CN115913820A (zh) 2021-09-23 2021-09-23 网络传输方法和设备

Publications (1)

Publication Number Publication Date
WO2023046006A1 true WO2023046006A1 (zh) 2023-03-30

Family

ID=85720084

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/120491 Ceased WO2023046006A1 (zh) 2021-09-23 2022-09-22 网络传输方法和设备

Country Status (3)

Country Link
EP (1) EP4383656A4 (zh)
CN (1) CN115913820A (zh)
WO (1) WO2023046006A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116599840A (zh) * 2023-06-20 2023-08-15 中国联合网络通信集团有限公司 网络设备双上联管理配置方法、装置及存储介质
CN117749570A (zh) * 2023-12-26 2024-03-22 广州通则康威科技股份有限公司 一种基于5glan的以太网二层通信方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140086580A1 (en) * 2012-09-26 2014-03-27 Broadcom Corporation Optical line terminal (olt) system
CN104052717A (zh) * 2013-03-13 2014-09-17 中兴通讯股份有限公司 一种报文发送方法及装置
EP2827532A1 (en) * 2013-07-18 2015-01-21 Sercomm Corporation Optical communication network configuration method
CN105262617A (zh) * 2015-09-21 2016-01-20 博为科技有限公司 一种分配ip地址实现远程管理的方法、olt设备

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7894437B2 (en) * 2007-12-29 2011-02-22 Alcatel Lucent Determining transmission port in a GPON network
US9374294B1 (en) * 2013-11-05 2016-06-21 Cisco Technology, Inc. On-demand learning in overlay networks
CN106559292B (zh) * 2015-09-29 2020-03-06 新华三技术有限公司 一种宽带接入方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140086580A1 (en) * 2012-09-26 2014-03-27 Broadcom Corporation Optical line terminal (olt) system
CN104052717A (zh) * 2013-03-13 2014-09-17 中兴通讯股份有限公司 一种报文发送方法及装置
EP2827532A1 (en) * 2013-07-18 2015-01-21 Sercomm Corporation Optical communication network configuration method
CN105262617A (zh) * 2015-09-21 2016-01-20 博为科技有限公司 一种分配ip地址实现远程管理的方法、olt设备

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HUANG JIN, XUE YAO: "Business Backup Technology Research on Service Access and Control Layer of IP Metropolitan Area Network", DIANXIN KEXUE - TELECOMMUNICATIONS SCIENCE, RENMIN YOUDIAN CHUBANSHE, BEIJING, CN, vol. 79, no. 9, 30 September 2013 (2013-09-30), CN , pages 176 - 181, XP093055540, ISSN: 1000-0801, DOI: 10.3969/j.issn.1000-0801.2013.09.035 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116599840A (zh) * 2023-06-20 2023-08-15 中国联合网络通信集团有限公司 网络设备双上联管理配置方法、装置及存储介质
CN117749570A (zh) * 2023-12-26 2024-03-22 广州通则康威科技股份有限公司 一种基于5glan的以太网二层通信方法及装置
CN117749570B (zh) * 2023-12-26 2024-08-06 广州通则康威科技股份有限公司 一种基于5glan的以太网二层通信方法及装置

Also Published As

Publication number Publication date
EP4383656A4 (en) 2024-12-11
CN115913820A (zh) 2023-04-04
EP4383656A1 (en) 2024-06-12

Similar Documents

Publication Publication Date Title
US10122574B2 (en) Methods and apparatus for a common control protocol for wired and wireless nodes
US11184842B2 (en) Conveying non-access stratum messages over ethernet
KR102342286B1 (ko) Dcn 메시지 처리 방법, 네트워크 디바이스, 및 네트워크 시스템
US20190052580A1 (en) Interactions Between A Broadband Network Gateway And A Fifth Generation Core
US7656872B2 (en) Packet forwarding apparatus and communication network suitable for wide area Ethernet service
CN116319516A (zh) 安全sd-wan端口信息分发
CN106713100B (zh) 一种自动建立隧道的方法、cpe及汇聚设备
CN102308523B (zh) 数据通信网络配置方法、网关网元及数据通信系统
US11296985B2 (en) Normalized lookup and forwarding for diverse virtual private networks
WO2021073357A1 (zh) 报文处理方法、装置、系统、设备及存储介质
WO2019033964A1 (zh) 一种传输报文的方法、转发设备、控制器及系统
CN112583690A (zh) 隧道配置方法、装置、系统、设备及存储介质
EP4387189A1 (en) Packet forwarding method, apparatus, device, and storage medium
WO2016180020A1 (zh) 一种报文处理方法、设备和系统
WO2022117018A1 (zh) 报文传输的方法和装置
CN114978567A (zh) 微分支部署中的认证链接
WO2007141840A1 (ja) 中継ネットワークシステム及び端末アダプタ装置
CN112583718A (zh) 一种SRoU场景下SRv6报文传递方法、系统、设备及介质
WO2023046006A1 (zh) 网络传输方法和设备
EP3007389A1 (en) Gre tunnel implementation method, access point and gateway
WO2022142905A1 (zh) 报文转发的方法、装置和网络系统
WO2022007749A1 (zh) 一种数据传输方法和装置
CN117811875A (zh) 一种家庭互通网络访问方法和装置
WO2019042225A1 (zh) 用户宽带接入处理的方法及装置、设备
US20230117218A1 (en) Cloud-edge forwarding in a network

Legal Events

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

Ref document number: 22872051

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022872051

Country of ref document: EP

Effective date: 20240304

NENP Non-entry into the national phase

Ref country code: DE