[go: up one dir, main page]

CN119583994A - Data communication method, device, gateway device, storage medium and computer program product - Google Patents

Data communication method, device, gateway device, storage medium and computer program product Download PDF

Info

Publication number
CN119583994A
CN119583994A CN202411665563.2A CN202411665563A CN119583994A CN 119583994 A CN119583994 A CN 119583994A CN 202411665563 A CN202411665563 A CN 202411665563A CN 119583994 A CN119583994 A CN 119583994A
Authority
CN
China
Prior art keywords
service flow
flow message
current
message data
communication
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.)
Pending
Application number
CN202411665563.2A
Other languages
Chinese (zh)
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.)
China Telecom Technology Innovation Center
China Telecom Corp Ltd
Original Assignee
China Telecom Technology Innovation Center
China Telecom Corp 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 China Telecom Technology Innovation Center, China Telecom Corp Ltd filed Critical China Telecom Technology Innovation Center
Priority to CN202411665563.2A priority Critical patent/CN119583994A/en
Publication of CN119583994A publication Critical patent/CN119583994A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/27Arrangements for networking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0086Network resource allocation, dimensioning or optimisation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请实施例提供了一种数据通信方法、装置、网关设备、存储介质和计算机程序产品,涉及网络通信技术领域。该方法包括:网关设备可以监测到当前子设备的当前业务流报文数据;获取当前业务流报文数据的业务流报文长度;根据业务流报文长度,确定当前业务流报文数据的通信配置策略;按照通信配置策略,对当前业务流报文数据进行业务通信。该方法,提高了数据通信的灵活性、兼容性、全面性和安全性。

The embodiment of the present application provides a data communication method, device, gateway device, storage medium and computer program product, which relates to the field of network communication technology. The method includes: the gateway device can monitor the current service flow message data of the current sub-device; obtain the service flow message length of the current service flow message data; determine the communication configuration strategy of the current service flow message data according to the service flow message length; perform service communication on the current service flow message data according to the communication configuration strategy. The method improves the flexibility, compatibility, comprehensiveness and security of data communication.

Description

Data communication method, apparatus, gateway device, storage medium, and computer program product
Technical Field
The present application relates to the field of network communications technologies, and in particular, to a data communication method, apparatus, gateway device, storage medium, and computer program product.
Background
In some all-optical networking, the gateway device can realize networking by expanding optical fibers to a room (Fiber To The Room, FTTR) module, the FTTR module consists of an Ethernet interface and a passive optical network (Passive Optical Network, PON) downlink interface, and the packet loss condition is easy to occur in the transmission process of message data with the message length lower than 64 bytes because the minimum frame length of the Ethernet is 64 bytes, so that the service flow of a small-byte message cannot normally communicate, and the problem of low transmission security exists.
Disclosure of Invention
Based on this, it is necessary to provide a data communication method, an apparatus, a gateway device, a storage medium and a computer program product in view of the above technical problems.
In a first aspect, the present application provides a data communication method, which is applied to a gateway device. The method comprises the following steps:
monitoring current service flow message data of a current sub-device;
Acquiring the service flow message length of the current service flow message data;
determining a communication configuration strategy of the current service flow message data according to the service flow message length;
and carrying out service communication on the current service flow message data according to the communication configuration strategy.
In one embodiment, determining the communication configuration policy of the current service flow message data according to the service flow message length includes determining that the communication configuration policy of the current service flow message data is a first communication configuration policy if the service flow message length is smaller than a first preset message length threshold, performing service communication on the current service flow message data according to the communication configuration policy, including determining a current sub-device corresponding to the current service flow message data according to the first communication configuration policy, determining an associated virtual local area network identifier of the current sub-device according to the first communication configuration policy, and performing service communication on the current service flow message data according to the associated virtual local area network identifier.
In one embodiment, the determining the current sub-device corresponding to the current service flow message data according to the first communication configuration policy includes obtaining device identification information included in the current service flow message data according to the first communication configuration policy, and determining the current sub-device corresponding to the current service flow message data according to the device identification information.
In one embodiment, before determining the associated virtual lan identifier of the current sub-device according to the first communication configuration policy, the method further includes sending a data filling instruction for current service flow message data to the current sub-device if the service flow message length is smaller than a second preset message length threshold, where the current sub-device is configured to execute the data filling instruction to perform data filling on the current service flow message data until the service flow message length is greater than or equal to the second preset message length threshold, and the second preset message length threshold is smaller than the first preset message length threshold.
In one embodiment, determining the communication configuration policy of the current service flow message data according to the service flow message length includes determining that the communication configuration policy of the current service flow message data is a second communication configuration policy if the service flow message length is greater than or equal to a first preset message length threshold, and performing service communication on the current service flow message data according to the communication configuration policy, including performing service communication on the current service flow message data according to the second communication configuration policy.
In one embodiment, the performing service communication on the current service flow message data according to the second communication configuration policy includes determining, according to the current service flow message data, sending address information and receiving address information corresponding to the current service flow message data, and performing service communication on the current service flow message data according to the sending address information and the receiving address information.
In a second aspect, the present application provides a data communication apparatus, applied to a gateway device. The device comprises:
The monitoring module is used for monitoring the current service flow message data of the current sub-equipment;
The acquisition module is used for acquiring the service flow message length of the current service flow message data;
The strategy determining module is used for determining the communication configuration strategy of the current service flow message data according to the service flow message length;
and the communication module is used for carrying out service communication on the current service flow message data according to the communication configuration strategy.
In a third aspect, the present application further provides a gateway device. The gateway device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
monitoring current service flow message data of a current sub-device;
Acquiring the service flow message length of the current service flow message data;
determining a communication configuration strategy of the current service flow message data according to the service flow message length;
and carrying out service communication on the current service flow message data according to the communication configuration strategy.
In a fourth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
monitoring current service flow message data of a current sub-device;
Acquiring the service flow message length of the current service flow message data;
determining a communication configuration strategy of the current service flow message data according to the service flow message length;
and carrying out service communication on the current service flow message data according to the communication configuration strategy.
In a fifth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
monitoring current service flow message data of a current sub-device;
Acquiring the service flow message length of the current service flow message data;
determining a communication configuration strategy of the current service flow message data according to the service flow message length;
and carrying out service communication on the current service flow message data according to the communication configuration strategy.
In the data communication method, the device, the gateway equipment, the storage medium and the computer program product, the gateway equipment can monitor the current service flow message data of the current sub-equipment, acquire the service flow message length of the current service flow message data, determine the communication configuration strategy of the current service flow message data according to the service flow message length, and perform service communication on the current service flow message data according to the communication configuration strategy. In the method provided by the embodiment of the application, the gateway equipment can determine the communication configuration strategy of the current service flow message data according to the monitored service flow message length of the current service flow message data so as to ensure that the message data with different message sizes can be normally communicated, avoid the problem that the message data with the message length lower than 64 bytes is easy to lose packets in the transmission process, and improve the flexibility, compatibility, comprehensiveness and safety of data communication.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are needed in the description of the embodiments of the present application or the related technologies will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other related drawings may be obtained according to these drawings without inventive effort to those of ordinary skill in the art.
Fig. 1 is an application environment diagram of a data communication method according to an embodiment of the present application;
Fig. 2 is a schematic flow chart of a data communication method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of a first communication configuration policy according to an embodiment of the present application;
fig. 4 is a schematic flow chart of determining a current sub-device according to an embodiment of the present application;
fig. 5 is a schematic flow chart of service communication for current service flow message data according to an embodiment of the present application;
Fig. 6 is a block diagram of a data communication device according to an embodiment of the present application;
fig. 7 is an internal structure diagram of a gateway device according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or sufficiently authorized by each party.
Noun interpretation
Fiber-to-room (Fiber To The Room, FTTR), which refers to the laying of optical fibers to remote nodes, is the basic technical approach to fiber access. Other methods include FTTB, FTTC, FTTZ and FTTH. They may be laid down in a bus, ring, star or tree topology.
The passive optical network (Passive Optical Network, PON) is that the finger (in the optical cable network) does not contain any electronic device or electronic power source, and the ODN is composed of passive devices such as an optical Splitter (Splitter), and no expensive active electronic equipment is required.
Virtual local area networks (Virtual Local Area Network, VLANs) are a technique for logically dividing Local Area Network (LAN) devices into individual segments, thereby implementing data switching for virtual workgroups (units).
An ONU management control interface (ONU MANAGEMENT AND Control Interface, OMCI) is a protocol defined in the GPON standard for information interaction between the OLT and the ONTs, and is used for managing the ONTs by the OLT in the GPON network, including configuration management, fault management, performance management, security management, and the like.
The data communication method provided by the embodiment of the application can be applied to an application environment shown in fig. 1. The application environment may include gateway devices, FTTR modules, and sub-devices. The gateway device can be a gateway in optical networking of enterprises and other enterprises or specific institutions, the gateway device can comprise a calculation module, the sub-devices can be an underhung slave device and an existing network gateway in the optical networking, for example, a slave device 1 (for example, a camera) and a slave device 2 (for example, a computer (Personal Computer, a PC)) and the like, the underhung slave device and the existing network gateway comprise various terminal devices (for example, a computer, a printer, a camera and the like) and the existing network gateway device, and the communication connection with the gateway device is realized through accessing FTTR modules through a PON port, so that a complete network system is constructed. The terminal can be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices and portable wearable devices, and the internet of things devices can be smart speakers, smart televisions, smart air conditioners, smart vehicle devices, projection devices and the like. The portable wearable device may be a smart watch, smart bracelet, headset, or the like. The head-mounted device may be a Virtual Reality (VR) device, an augmented Reality (Augmented Reality, AR) device, smart glasses, or the like.
In the all-optical networking, the gateway device can realize networking through an expansion FTTR module, the FTTR module is composed of an Ethernet interface and a Passive Optical Network (PON) lower interface, the upper interface is connected with the gateway device, the lower interface is used for accessing the lower hanging slave device, the existing network gateway and the like, and data transmission among devices at different levels is realized.
First, an OMCC (OMCI channel) may be established between an Optical line terminal (Optical LINE TERMINAL, OLT) and an Optical network terminal (Optical network terminal, ONT). The OMCI channel is a basic channel for information interaction between the two parties, and enables the two parties to perform stable communication connection through a specific protocol and configuration parameters. The OLT may be analogous to the role of gateway devices in PON networks, and the ONTs may be analogous to underhung slaves or existing gateways. Next, the down slave device or the existing network gateway enters an O5 state after completing the startup and initialization process. In this state, the device already has basic operating conditions and is ready for information interaction with the OLT. Further, the down slave device or the existing network gateway may encapsulate its own media access Control Address (MAC) information, i.e. device Address information, into a specific OMCI message according to a format and coding manner specified by the OMCI protocol, where the OMCI message may include current service flow message data. After receiving the OMCI message containing the MAC address information, the gateway device decodes the message according to the parsing rule of the OMCI protocol, and extracts the content such as the MAC address information and the device identifier related to the MAC address information. And the MAC address information obtained by analysis is associated with the corresponding down-hanging equipment or the current network gateway, and is stored in a local management database or a memory table. In this way, the gateway device can rapidly identify and manage different down-hanging devices according to the MAC address in the subsequent business flow processing and automatic negotiation process, and realize the effective management and control of the whole network device and the optimization processing of data communication.
In addition, the gateway device continuously monitors any one of the service flow message data forwarded by the gateway device, for example, a message size of a camera down-hanging from the slave device 1 (MAC address 0, MAC address 6) is 60 bytes, a message size of a PC down-hanging from the slave device 2 (MAC address 1, MAC address G) is 88 bytes, and a message size of an industrial terminal down-hanging from the current network gateway (MAC address 4, MAC address 9) is 56 bytes. The data packet of the service flow message data comprises a certain data packet head information and a payload (data part), and the total length of the data packet is the message size, namely the message length. The gateway device obtains the size information of the traffic stream packet data by analyzing the relevant fields of the packet header (e.g., length fields in ethernet frames, etc.). Therefore, the gateway equipment can acquire the service flow message length of any one piece of current service flow message data. The gateway device may then determine a communication configuration policy for the current traffic stream message data according to the traffic stream message length, and perform traffic communication for the current traffic stream message data according to the communication configuration policy.
In a possible implementation manner, the number of connections of the lower hanging device can be increased, and the connection FTTR module can be extended in other upper connection ports eth ports, such as eth2, and adjusted according to the same communication configuration strategy, so that the expandability and flexibility of the all-optical networking are greatly enhanced.
In an exemplary embodiment, as shown in fig. 2, a data communication method is provided, where this embodiment is applied to a gateway device for illustration, it is understood that the method may also be applied to a terminal, and may also be applied to a system including a terminal and a server, and implemented through interaction between the terminal and the server. In this embodiment, the method includes the steps of:
step 102, monitoring the current service flow message data of the current sub-equipment.
In one possible implementation manner, the gateway device may be a gateway device in an optical networking, and the sub device may be an underhung slave device and an existing network gateway in the optical networking. The down-hanging slave device and the existing network gateway comprise various terminal devices (such as computers, printers, cameras and the like) and the existing network gateway device, and are connected with the FTTR module through a PON port, so that communication connection with the gateway device is realized, and a complete network system is constructed. In this step, the gateway device continuously monitors any one current traffic stream message data among the traffic stream message data forwarded by the gateway device.
Step 104, obtaining the service flow message length of the current service flow message data.
The data packet of any one current service flow message data comprises certain data packet head information and a payload (data part), and the total length of the data packet is the message size, namely the message length. The gateway device obtains the size information of the traffic stream packet data by analyzing the relevant fields of the packet header (e.g., length fields in ethernet frames, etc.). Therefore, the gateway device can acquire the service flow message length of any one current service flow message data, and the service flow message length can be used for representing the message size of the corresponding service flow message data. For example, the size of the message with the camera down-hanging from the slave device 1 (MAC address 0) and the size of the message with the PC down-hanging from the slave device 2 (MAC address 1) and the size of the message with the camera down-hanging from the slave device 2 (MAC address 1) and the size of the message with the industrial terminal down-hanging from the current network gateway (MAC address 4) and the size of the message with the slave device 2 (MAC address 1) and the size of the message with the slave device 2 (MAC address 9) are respectively 60 bytes and 56 bytes.
And step 106, determining the communication configuration strategy of the current service flow message data according to the service flow message length.
In this step, the gateway device may determine, according to the service flow message length of any one of the current service flow message data, a communication configuration policy of the current service flow message data, where different service flow message lengths correspond to different communication configuration policies, and the communication configuration policy is used to represent a communication configuration required for transmitting the current service flow message data. The communication configuration policy may include a first communication configuration policy and a second communication configuration policy, and if the communication configuration policy of the current service flow packet data is the first communication configuration policy, it indicates that corresponding data processing needs to be performed on the current service flow packet data before the gateway device forwards the current service flow packet data. If the communication configuration policy of the current service flow message data is the second communication configuration policy, the gateway device may directly forward the current service flow message data without performing data processing on the current service flow message data. Specifically, if the length of the service flow message is smaller than a first preset message length threshold (for example, 64 bytes), determining that the communication configuration policy of the current service flow message data is a first communication configuration policy, and for the first communication configuration policy, the gateway device may obtain device identification information, for example, MAC address information, corresponding to the current service flow message data according to the current service flow message data, and further may determine, according to the MAC address information, a current sub-device corresponding to the current service flow message data, where the current sub-device may be a down-hanging slave device and a current network gateway in an optical networking. Further, in one possible implementation, if the traffic flow packet length is smaller than the first preset packet length threshold (e.g. 64 bytes) and is greater than or equal to the second preset packet length threshold (e.g. 60 bytes), the gateway device may allocate a VLAN (virtual local area network) to the current traffic flow packet data of the current sub-device, specifically may associate a specific virtual local area network identifier VLAN ID with the down-hanging device or port to which the traffic flow belongs in the configuration of the gateway device, e.g. may select an unused VLAN ID from a predefined VLAN pool (e.g. VLAN 101, VLAN 102, etc.) and configure it into the port or associated forwarding rule to which the current child device is connected. By distributing VLAN, the service flows of different types or demands can be logically divided into different virtual local area networks, thereby realizing isolation and management of network traffic and improving the security and performance of the network. In another possible implementation manner, if the service flow message length is smaller than a second preset message length threshold (for example, 60 bytes), the gateway device sends a data filling instruction for the current service flow message data to the current sub-device, and sends an instruction to the target hooking device through OMCI message or other specific communication protocol, the current sub-device is used for executing the data filling instruction, performing data filling on the current service flow message data, and adding specific filling data (for example, 0000) to the payload part of the original current service flow message data until the service flow message length is greater than or equal to the second preset message length threshold, namely, 60 bytes, and the second preset message length threshold is smaller than the first preset message length threshold. Further, the gateway device may allocate a VLAN (virtual local area network) for the current traffic flow packet data of the current sub-device. If the length of the service flow message is greater than or equal to the first preset message length threshold (for example, 64 bytes), determining that the communication configuration policy of the current service flow message data is a second communication configuration policy, and for the second communication configuration policy, the gateway device can directly forward the current service flow message data, and network devices such as a switch and the like can accurately forward the message to the target device or the next hop network node according to the destination MAC address information of the current service flow message data. For example, the service flow packet size of the camera is 60 bytes, the gateway device is triggered to allocate VLAN101 to the slave device (MAC address 0x 6), the service flow packet size of the PC is 88 bytes, no processing is performed, and the service flow packet size of the industrial terminal is 56 bytes, the master device is triggered to allocate VLAN103 to the slave device (MAC address 4 x 9), and the device is notified to supplement user data to 60 bytes.
And step 108, carrying out service communication on the current service flow message data according to the communication configuration strategy.
The gateway device may obtain device identification information corresponding to the current service flow message data according to the current service flow message data, for example, MAC address information, where the MAC address information may include source MAC address information and destination MAC address information, and the gateway device may forward the current service flow message data according to a network topology structure, a routing rule, and a communication configuration policy, where network devices such as a switch accurately forward a message to a target device or a next hop network node according to destination MAC address information and/or a VLAN tag of the current service flow message data.
In the method of the embodiment, the gateway equipment can monitor the current service flow message data of the current sub-equipment, acquire the service flow message length of the current service flow message data, determine the communication configuration strategy of the current service flow message data according to the service flow message length, and perform service communication on the current service flow message data according to the communication configuration strategy. In the method provided by the embodiment of the application, the gateway equipment can determine the communication configuration strategy of the current service flow message data according to the monitored service flow message length of the current service flow message data so as to ensure that the message data with different message sizes can be normally communicated, avoid the problem that the message data with the message length lower than 64 bytes is easy to lose packets in the transmission process, and improve the flexibility, compatibility, comprehensiveness and safety of data communication.
In an exemplary embodiment, step 106 may include:
if the length of the service flow message is smaller than the first preset message length threshold, determining that the communication configuration strategy of the current service flow message data is the first communication configuration strategy.
Further, as shown in fig. 3, step 108 may include steps 302 through 306. Wherein:
step 302, determining a current sub-device corresponding to the current service flow message data according to the first communication configuration strategy.
Step 304, determining an associated virtual local area network identifier of the current sub-device according to the first communication configuration policy.
And 306, carrying out service communication on the current service flow message data according to the associated virtual local area network identifier.
And for the first communication configuration strategy, the gateway device can acquire device identification information, such as MAC address information, corresponding to the current service flow message data according to the current service flow message data, and further can determine the current sub-device corresponding to the current service flow message data according to the MAC address information, wherein the current sub-device can be a down-hanging slave device and a current network gateway in an optical networking. Further, in one possible implementation, if the traffic flow packet length is smaller than the first preset packet length threshold (e.g., 64 bytes) and is greater than or equal to the second preset packet length threshold (e.g., 60 bytes), the gateway device may allocate a VLAN (virtual local area network) to the current traffic flow packet data of the current sub-device, specifically may associate a specific virtual local area network identifier VLAN ID with the hanging device or the port to which the traffic flow belongs in the configuration of the gateway device, for example, may select an unused VLAN ID (e.g., VLAN 101, VLAN 102, etc.) from a predefined VLAN pool and configure the VLAN ID into the port or the associated forwarding rule connected to the current sub-device. By distributing VLAN, the service flows of different types or demands can be logically divided into different virtual local area networks, thereby realizing isolation and management of network traffic and improving the security and performance of the network. In another possible implementation manner, if the service flow message length is smaller than a second preset message length threshold (for example, 60 bytes), the gateway device sends a data filling instruction for the current service flow message data to the current sub-device, and sends an instruction to the target hooking device through OMCI message or other specific communication protocol, the current sub-device is used for executing the data filling instruction, performing data filling on the current service flow message data, and adding specific filling data (for example, 0000) to the payload part of the original current service flow message data until the service flow message length is greater than or equal to the second preset message length threshold, namely, 60 bytes, and the second preset message length threshold is smaller than the first preset message length threshold. Further, the gateway device may allocate a VLAN (virtual local area network) for the current traffic flow packet data of the current sub-device.
In the method of the embodiment, the gateway device can determine the communication configuration strategy of the current service flow message data according to the monitored service flow message length of the current service flow message data so as to ensure that message data with different message sizes can be normally communicated, avoid the problem that the message data with the message length lower than 64 bytes is easy to lose packets in the transmission process, and improve the flexibility, compatibility, comprehensiveness and safety of data communication.
In an exemplary embodiment, as shown in FIG. 4, step 302 may include steps 402 through 404. Wherein:
Step 402, according to the first communication configuration policy, obtaining the equipment identification information contained in the current service flow message data.
Step 404, determining the current sub-device corresponding to the current service flow message data according to the device identification information.
The gateway device may obtain, according to the current service flow packet data, device identification information, for example, MAC address information, corresponding to the current service flow packet data, and further may determine, according to the MAC address information, a current sub-device corresponding to the current service flow packet data, where the current sub-device may be a down-hanging slave device and a current network gateway in an optical networking.
In the method of the embodiment, the gateway device can analyze the MAC address information of the current service flow message data, and further, can identify the current sub-device corresponding to the current service flow message data, and can improve the efficiency and the accuracy of data transmission.
In an exemplary embodiment, before step 304, the method may further include:
If the service flow message length is smaller than a second preset message length threshold, transmitting a data filling instruction aiming at the current service flow message data to current sub-equipment, wherein the current sub-equipment is used for executing the data filling instruction and performing data filling on the current service flow message data until the service flow message length is larger than or equal to the second preset message length threshold, and the second preset message length threshold is smaller than the first preset message length threshold.
In an exemplary embodiment, step 106 may include:
If the length of the service flow message is greater than or equal to the first preset message length threshold, determining that the communication configuration strategy of the current service flow message data is a second communication configuration strategy.
Further, step 108 may include performing traffic communication on the current traffic flow message data according to a second communication configuration policy.
If the length of the service flow message is greater than or equal to the first preset message length threshold (for example, 64 bytes), determining that the communication configuration policy of the current service flow message data is a second communication configuration policy, and for the second communication configuration policy, the gateway device can directly forward the current service flow message data, and network devices such as a switch and the like can accurately forward the message to the target device or the next hop network node according to the destination MAC address information of the current service flow message data.
In the method of the embodiment, when the gateway device determines that the length of the service flow message is greater than or equal to the first preset message length threshold, the gateway device can directly forward the current service flow message data without performing corresponding data processing, thereby improving the efficiency and simplicity of data transmission.
In an exemplary embodiment, as shown in fig. 5, the step of performing service communication on the current service flow packet data according to the second communication configuration policy may include steps 502 to 504. Wherein:
step 502, determining the sending address information and the receiving address information corresponding to the current service flow message data according to the current service flow message data.
And step 504, carrying out service communication on the current service flow message data according to the sending address information and the receiving address information.
The gateway device may obtain, according to the current service flow packet data, device identification information corresponding to the current service flow packet data, for example, MAC address information, where the MAC address information may include source MAC address information and destination MAC address information, the sending address information may be source MAC address information, and the receiving address information may be destination MAC address information. The gateway device can forward the current service flow message data according to the network topology structure, the routing rule and the communication configuration strategy, and the network devices such as the switch can accurately forward the message to the target device or the next hop network node according to the destination MAC address information of the current service flow message data.
In the method of the embodiment, the gateway device can determine the communication configuration strategy of the current service flow message data according to the monitored service flow message length of the current service flow message data so as to ensure that message data with different message sizes can be normally communicated, avoid the problem that the message data with the message length lower than 64 bytes is easy to lose packets in the transmission process, and improve the flexibility, compatibility, comprehensiveness and safety of data communication.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a data communication device for realizing the above related data communication method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the data communication device provided below may refer to the limitation of the data communication method hereinabove, and will not be repeated herein.
In one embodiment, as shown in FIG. 6, a data communication apparatus is provided, comprising a monitoring module 602, an acquisition module 604, a policy determination module 606, and a communication module 608, wherein:
a monitoring module 602, configured to monitor current service flow message data of a current sub-device;
An obtaining module 604, configured to obtain a service flow message length of the current service flow message data;
A policy determining module 606, configured to determine a communication configuration policy of the current service flow packet data according to the service flow packet length;
And the communication module 608 is configured to perform service communication on the current service flow message data according to the communication configuration policy.
In one embodiment, the policy determining module 606 is further configured to determine, according to the service flow message length, a communication configuration policy of the current service flow message data, where the policy determining module includes:
if the service flow message length is smaller than a first preset message length threshold, determining that the communication configuration strategy of the current service flow message data is a first communication configuration strategy.
In one embodiment, the communication module 608 is further configured to determine a current sub-device corresponding to the current service flow packet data according to the first communication configuration policy, determine an associated virtual local area network identifier of the current sub-device according to the first communication configuration policy, and perform service communication on the current service flow packet data according to the associated virtual local area network identifier.
In one embodiment, the communication module 608 is further configured to obtain, according to the first communication configuration policy, device identification information included in the current service flow packet data, and determine, according to the device identification information, the current sub-device corresponding to the current service flow packet data.
In one embodiment, the communication module 608 is further configured to send a data filling instruction for the current service flow message data to the current sub-device if the service flow message length is less than a second preset message length threshold, where the current sub-device is configured to execute the data filling instruction to perform data filling on the current service flow message data until the service flow message length is greater than or equal to the second preset message length threshold, and the second preset message length threshold is less than the first preset message length threshold.
In one embodiment, the policy determining module 606 is further configured to determine that the communication configuration policy of the current service flow packet data is a second communication configuration policy if the service flow packet length is greater than or equal to a first preset packet length threshold.
In one embodiment, the communication module 608 is further configured to determine, according to the current service flow packet data, sending address information and receiving address information corresponding to the current service flow packet data, and perform service communication on the current service flow packet data according to the sending address information and the receiving address information.
The respective modules in the above-described data communication apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or independent of a processor in the gateway device, or may be stored in software in a memory in the gateway device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a gateway device is provided, the internal structure of which may be as shown in fig. 7. The gateway device includes a processor, a memory, and a communication interface connected by a system bus. Wherein the processor of the gateway device is configured to provide computing and control capabilities. The memory of the gateway device includes a nonvolatile storage medium, an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the gateway device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data communication method.
It will be appreciated by those skilled in the art that the structure shown in fig. 7 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the gateway device to which the present inventive arrangements are applied, and that a particular gateway device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a gateway device including a memory and a processor, the memory storing a computer program, the processor implementing the steps of the method embodiments described above when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method of data communication, applied to a gateway device, the method comprising:
monitoring current service flow message data of a current sub-device;
Acquiring the service flow message length of the current service flow message data;
determining a communication configuration strategy of the current service flow message data according to the service flow message length;
and carrying out service communication on the current service flow message data according to the communication configuration strategy.
2. The method according to claim 1, wherein determining the communication configuration policy of the current service flow message data according to the service flow message length comprises:
If the service flow message length is smaller than a first preset message length threshold, determining that the communication configuration strategy of the current service flow message data is a first communication configuration strategy;
The service communication of the current service flow message data is carried out according to the communication configuration strategy, which comprises the following steps:
determining a current sub-device corresponding to the current service flow message data according to the first communication configuration strategy;
determining an associated virtual local area network identifier of the current sub-equipment according to the first communication configuration strategy;
And carrying out service communication on the current service flow message data according to the associated virtual local area network identifier.
3. The method according to claim 2, wherein the determining, according to the first communication configuration policy, a current sub-device corresponding to the current traffic flow packet data includes:
Acquiring equipment identification information contained in the current service flow message data according to the first communication configuration strategy;
And determining the current sub-equipment corresponding to the current service flow message data according to the equipment identification information.
4. The method of claim 2, wherein prior to determining the associated virtual local area network identifier of the current child device according to the first communication configuration policy, further comprising:
And if the service flow message length is smaller than a second preset message length threshold, transmitting a data filling instruction aiming at the current service flow message data to the current sub-equipment, wherein the current sub-equipment is used for executing the data filling instruction and performing data filling on the current service flow message data until the service flow message length is larger than or equal to the second preset message length threshold, and the second preset message length threshold is smaller than the first preset message length threshold.
5. The method according to claim 1, wherein determining the communication configuration policy of the current service flow message data according to the service flow message length comprises:
If the length of the service flow message is greater than or equal to a first preset message length threshold, determining that the communication configuration strategy of the current service flow message data is a second communication configuration strategy;
The service communication of the current service flow message data is carried out according to the communication configuration strategy, which comprises the following steps:
and carrying out service communication on the current service flow message data according to the second communication configuration strategy.
6. The method of claim 5, wherein said performing service communication on said current service flow message data according to said second communication configuration policy comprises:
determining the sending address information and the receiving address information corresponding to the current service flow message data according to the current service flow message data;
And carrying out service communication on the current service flow message data according to the sending address information and the receiving address information.
7. A data communication apparatus for use with a gateway device, the apparatus comprising:
The monitoring module is used for monitoring the current service flow message data of the current sub-equipment;
The acquisition module is used for acquiring the service flow message length of the current service flow message data;
The strategy determining module is used for determining the communication configuration strategy of the current service flow message data according to the service flow message length;
and the communication module is used for carrying out service communication on the current service flow message data according to the communication configuration strategy.
8. Gateway device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1-6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1-6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1-6.
CN202411665563.2A 2024-11-20 2024-11-20 Data communication method, device, gateway device, storage medium and computer program product Pending CN119583994A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411665563.2A CN119583994A (en) 2024-11-20 2024-11-20 Data communication method, device, gateway device, storage medium and computer program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411665563.2A CN119583994A (en) 2024-11-20 2024-11-20 Data communication method, device, gateway device, storage medium and computer program product

Publications (1)

Publication Number Publication Date
CN119583994A true CN119583994A (en) 2025-03-07

Family

ID=94799401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411665563.2A Pending CN119583994A (en) 2024-11-20 2024-11-20 Data communication method, device, gateway device, storage medium and computer program product

Country Status (1)

Country Link
CN (1) CN119583994A (en)

Similar Documents

Publication Publication Date Title
US9319236B2 (en) Optical line terminal (OLT) system
CN107222353B (en) Support protocol-independent software-defined network virtualization management platform
CN103516632B (en) Method and apparatus for providing services in a distributed switch
US20130100858A1 (en) Distributed switch systems in a trill network
CN104604182B (en) Service channel collocation method and optical line terminal and EPON
CN110506411A (en) Manage network traffic in virtual switches based on logical port identifiers
CN102136989B (en) Message transmission method, system and equipment
WO2018149338A1 (en) Sdn-based remote stream mirroring control method, implementation method, and related device
US20220070091A1 (en) Open fronthaul network system
US10374935B2 (en) Link discovery method, system, and device
CN106603550B (en) A kind of Network Isolation method and device
CN111147372B (en) Downlink message sending and forwarding method and device
US8817799B2 (en) Network processor for supporting residential gateway applications
CN107122324B (en) A message transmission method and device
EP2728797B1 (en) Message processing method, device and system
CN104065553B (en) Virtual network moving method and relevant device
CN103516633A (en) Methods and apparatus for providing services in a distributed switch
CN104508651A (en) Connection mesh in mirroring asymmetric clustered multiprocessor systems
WO2012000242A1 (en) Method, system and device for implementing multicast preview
RU2623897C2 (en) Method and device for management of packages
CN105790986A (en) Method, apparatus and system for managing optical network unit DPU device
WO2022222750A1 (en) Packet forwarding method and apparatus, network device, and storage medium
CN103346950A (en) Sharing method and device of load between user service boards of rack-mounted wireless controller
CN112003685B (en) A flexible Ethernet message forwarding method and device
CN119583994A (en) Data communication method, device, gateway device, storage medium and computer program product

Legal Events

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